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

x/arktype/utils/objectKinds.ts>objectKindOf

TypeScript's 1:1 validator, optimized from editor to runtime
Latest
type alias objectKindOf
import { type objectKindOf } from "https://deno.land/x/arktype@v1.0.10-alpha/utils/objectKinds.ts";
definition: isTopType<data> extends true ? undefined | keyof kinds : data extends object ? object extends data ? keyof kinds : [kind in keyof kinds]: kinds[kind] extends constructor<data> ? kind : data extends (...args: any[]) => unknown ? "Function" : "Object"[keyof kinds] : undefined
variable objectKindOf
import { objectKindOf } from "https://deno.land/x/arktype@v1.0.10-alpha/utils/objectKinds.ts";

type

<data, kinds extends ObjectKindSet = DefaultObjectKindSet>(data: data, kinds?: kinds) => unknown