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

Function is

packages/effect/src/SchemaParser.ts:135–137  ·  view source on GitHub ↗
(schema: S)

Source from the content-addressed store, hash-verified

133 * @since 3.10.0
134 */
135export function is<S extends Schema.Constraint>(schema: S): <I>(input: I) => input is I & S["Type"] {
136 return _is<S["Type"]>(schema.ast)
137}
138
139function makeIs<T>(ast: SchemaAST.AST): <I>(input: I) => input is I & T {
140 if (!CompilerRegistry.compilerAdaptersEnabled) {

Callers

nothing calls this directly

Calls 1

_isFunction · 0.85

Tested by

no test coverage detected