MCPcopy Create free account
hub / github.com/arktypeio/arktype / serializeDefault

Function serializeDefault

ark/schema/structure/structure.ts:1818–1819  ·  view source on GitHub ↗
(js: NodeCompiler, value: unknown)

Source from the content-addressed store, hash-verified

1816
1817// -0 would serialize as 0
1818const serializeDefault = (js: NodeCompiler, value: unknown): string =>
1819 Object.is(value, -0) ? "-0" : js.serialize(value)
1820
1821const canFailTransforming = (node: BaseNode): boolean =>
1822 node.hasMorph || node.tfCtx

Callers 2

writeDefaultMethod · 0.85
compileDefaultFunction · 0.85

Calls 1

isMethod · 0.80

Tested by

no test coverage detected