MCPcopy Create free account
hub / github.com/Tong89/smartNode / labelDataType

Function labelDataType

frontend/src/utils/format.ts:67–70  ·  view source on GitHub ↗
(type: string | undefined | null)

Source from the content-addressed store, hash-verified

65 * @param type - Backend data-type key (e.g. "DATA_SLICE").
66 */
67export function labelDataType(type: string | undefined | null): string {
68 if (!type) return '未知';
69 return DATA_TYPE_LABELS[type] || type;
70}
71
72/**
73 * Return the human-readable label for a transmission status.

Callers 1

format.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected