MCPcopy
hub / github.com/loggerhead/json4u / toDummyType

Function toDummyType

src/lib/table/utils.ts:23–35  ·  view source on GitHub ↗
(t: TableNodeType)

Source from the content-addressed store, hash-verified

21}
22
23export function toDummyType(t: TableNodeType): TableNodeType {
24 switch (t) {
25 case "key":
26 return "dummyKey";
27 case "index":
28 return "dummyIndex";
29 case "header":
30 case "value":
31 return "dummyValue";
32 default:
33 return t;
34 }
35}
36
37export function isDummyType(t: TableNodeType) {
38 return t.startsWith("dummy");

Callers 1

newDummyNodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected