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

Method set

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

Source from the content-addressed store, hash-verified

141 }
142
143 set(identifier: string, expression: CoercibleValue): this {
144 return this.line(`${identifier} = ${expression}`)
145 }
146
147 if(condition: string, then: (self: this) => this): this {
148 return this.block(`if (${condition})`, then)

Callers 15

readRefFunction · 0.45
constObjectRootFunction · 0.45
opaqueFunction · 0.45
hasUniqueItemsFunction · 0.45
jsonEqualsFunction · 0.45
intersections.tsFile · 0.45
tagsOfFunction · 0.45
flattenInnerFunction · 0.45
parseFunction · 0.45
pushAtFunction · 0.45
signatureIdFunction · 0.45

Calls 1

lineMethod · 0.95

Tested by

no test coverage detected