MCPcopy Create free account
hub / github.com/Shazbot/WH3-Mod-Manager / createSchemaField

Function createSchemaField

test/nodeGraph/lookup.node.test.ts:13–19  ·  view source on GitHub ↗
(name: string, value: string | number)

Source from the content-addressed store, hash-verified

11import { createFlowExecutionContext } from "../../src/flowExecutionSupport";
12
13const createSchemaField = (name: string, value: string | number) => ({
14 name,
15 type: typeof value === "number" ? "I32" : "StringU8",
16 fields: [{ type: typeof value === "number" ? "I32" : "String", val: value }],
17 resolvedKeyValue: String(value),
18 isKey: false,
19});
20
21const createDbField = (name: string) => ({
22 name,

Callers 1

createTableSelectionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected