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

Method const

ark/schema/shared/compile.ts:134–137  ·  view source on GitHub ↗
(identifier: string, expression: CoercibleValue)

Source from the content-addressed store, hash-verified

132 }
133
134 const(identifier: string, expression: CoercibleValue): this {
135 this.line(`const ${identifier} = ${expression}`)
136 return this
137 }
138
139 let(identifier: string, expression: CoercibleValue): this {
140 return this.line(`let ${identifier} = ${expression}`)

Callers 15

writeUnitFunction · 0.95
compileMethod · 0.80
jsIndiscMethod · 0.80
jsTfMethod · 0.80
jsElemTfsMethod · 0.80
jsElementsMethod · 0.80
compileMethod · 0.80
jsTfMethod · 0.80
tfKeyMethod · 0.80
jsCopyOnceMethod · 0.80
jsDeleteTransformMethod · 0.80
jsForOwnKeysMethod · 0.80

Calls 1

lineMethod · 0.95

Tested by

no test coverage detected