Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/arktype/utils/domains.ts>domainOf

TypeScript's 1:1 validator, optimized from editor to runtime
Latest
type alias domainOf
import { type domainOf } from "https://deno.land/x/arktype@v1.0.10-alpha/utils/domains.ts";
definition: isTopType<data> extends true ? Domain : data extends object ? "object" : data extends string ? "string" : data extends number ? "number" : data extends boolean ? "boolean" : data extends undefined ? "undefined" : data extends null ? "null" : data extends bigint ? "bigint" : data extends symbol ? "symbol" : never
variable domainOf
import { domainOf } from "https://deno.land/x/arktype@v1.0.10-alpha/utils/domains.ts";

type

<data>(data: data) => unknown