Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/arktype/utils/generics.ts>prototypeKeysOf

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

Mimics output of TS's keyof operator at runtime

type

<t>(value: t) => evaluate<keyof t>[]