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

Function takeTrusted

packages/effect/src/encoding/SchemaBinary.ts:5415–5419  ·  view source on GitHub ↗
(trusted: Trusted, input: unknown)

Source from the content-addressed store, hash-verified

5413}
5414
5415function takeTrusted(trusted: Trusted, input: unknown): boolean {
5416 if (trusted.value === undefined || input !== trusted.value) return false
5417 trusted.value = undefined
5418 return true
5419}
5420
5421// A target that bypasses the schema pass when `accept` takes the input, and
5422// otherwise runs the target's type schema. The two directions get their own

Callers 2

withTrustedDecodeFunction · 0.85
withExitSuccessDecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected