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

Method elseIf

ark/schema/shared/compile.ts:151–153  ·  view source on GitHub ↗
(condition: string, then: (self: this) => this)

Source from the content-addressed store, hash-verified

149 }
150
151 elseIf(condition: string, then: (self: this) => this): this {
152 return this.block(`else if (${condition})`, then)
153 }
154
155 else(then: (self: this) => this): this {
156 return this.block("else", then)

Callers 1

applyKeyFunction · 0.80

Calls 1

blockMethod · 0.95

Tested by

no test coverage detected