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

Function compileMode

packages/effect/src/encoding/SchemaBinary.ts:5382–5384  ·  view source on GitHub ↗
(layout: Layout, fingerprint: boolean | undefined)

Source from the content-addressed store, hash-verified

5380const fingerprintModeMemo = memoize(fingerprintMode)
5381
5382function compileMode(layout: Layout, fingerprint: boolean | undefined): Mode {
5383 return fingerprint === true ? fingerprintModeMemo(layout) : defaultMode
5384}
5385
5386interface CompiledTarget {
5387 readonly target: Schema.Constraint

Callers 8

toCodecFunction · 0.85
toCodecDirectFunction · 0.85
encodeUnknownSyncFunction · 0.85
encodeManyUnknownSyncFunction · 0.85
parserFunction · 0.85
encoderFunction · 0.85
encodeFunction · 0.85
decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected