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

Function isSchema

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

Source from the content-addressed store, hash-verified

2370 * @since 3.10.0
2371 */
2372export function isSchema(u: unknown): u is Top {
2373 return Predicate.hasProperty(u, TypeId) && u[TypeId] === TypeId
2374}
2375
2376/**
2377 * Type-level representation returned by {@link optionalKey}.

Callers 3

HMR.test.tsFile · 0.85
templateLiteralFromPartsFunction · 0.85
isStructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected