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

Function encodeFail

packages/effect/src/encoding/SchemaBinary.ts:3199–3201  ·  view source on GitHub ↗
(expected: string, input: unknown, options: SchemaAST.ParseOptions)

Source from the content-addressed store, hash-verified

3197}
3198
3199function encodeFail(expected: string, input: unknown, options: SchemaAST.ParseOptions): never {
3200 throw issueError(new SchemaIssue.InvalidValue({ expected }, input, options))
3201}
3202
3203function isCyclic(value: unknown, stack = new Set<object>()): boolean {
3204 if (!Predicate.isObjectOrArray(value)) return false

Callers 4

encodeSymbolFunction · 0.85
valueWireCodeFunction · 0.85
encodeNumberRunFunction · 0.85
encodeValueFunction · 0.85

Calls 1

issueErrorFunction · 0.85

Tested by

no test coverage detected