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

Function isSchemaError

packages/effect/src/Schema.ts:1211–1213  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

1209 * @since 4.0.0
1210 */
1211export function isSchemaError(u: unknown): u is SchemaError {
1212 return Predicate.hasProperty(u, SchemaErrorTypeId) && u[SchemaErrorTypeId] === SchemaErrorTypeId
1213}
1214
1215function makeStandardResult<A>(exit: Exit_.Exit<StandardSchemaV1.Result<A>>): StandardSchemaV1.Result<A> {
1216 return Exit_.isSuccess(exit) ? exit.value : {

Callers 1

getSchemaErrorOrThrowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected