Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/arktype/nodes/predicate.ts>Predicate

TypeScript's 1:1 validator, optimized from editor to runtime
Latest
type alias Predicate
import { type Predicate } from "https://deno.land/x/arktype@v1.0.10-alpha/nodes/predicate.ts";

If scope is provided, we also narrow each predicate to match its domain. Otherwise, we use a base predicate for all types, which is easier to manipulate.

Type Parameters

optional
domain extends Domain = Domain
optional
$ = Dict
definition: string extends keyof $ ? true | CollapsibleList<Branch> : true | CollapsibleList<Branch<domain, $>>