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

x/arktype/utils/generics.ts>nominal

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

Type Parameters

t
id extends string
definition: t & { readonly [id]: id; }
variable nominal
import { nominal } from "https://deno.land/x/arktype@v1.0.10-alpha/utils/generics.ts";

type

<o extends object, name extends string>(o: o, name: name) => nominal<o, name>