MCPcopy Create free account
hub / github.com/ajv-validator/ajv / constructor

Method constructor

lib/compile/codegen/code.ts:37–40  ·  view source on GitHub ↗
(code: string | readonly CodeItem[])

Source from the content-addressed store, hash-verified

35 private _names?: UsedNames
36
37 constructor(code: string | readonly CodeItem[]) {
38 super()
39 this._items = typeof code === "string" ? [code] : code
40 }
41
42 toString(): string {
43 return this.str

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected