MCPcopy Create free account
hub / github.com/Effect-TS/effect / constructor

Method constructor

packages/effect/src/Schema.ts:14082–14089  ·  view source on GitHub ↗
(...[input, options]: ReadonlyArray<any>)

Source from the content-addressed store, hash-verified

14080
14081 const out = class extends Inherited {
14082 constructor(...[input, options]: ReadonlyArray<any>) {
14083 const internalOptions = options as MakeOptions | undefined
14084 const payload = internalOptions?.["~payload"]
14085 const value = payload?.token === payloadToken
14086 ? payload.value
14087 : struct.make(input ?? {}, options)
14088 super(value, { ...options, disableChecks: true, "~payload": { token: payloadToken, value } })
14089 }
14090
14091 static readonly [TypeId] = TypeId
14092

Callers

nothing calls this directly

Calls 1

makeMethod · 0.65

Tested by

no test coverage detected