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

x/arktype/utils/generics.ts

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

Type Aliases

Type equivalent of ??

Causes a type that would be eagerly calculated to be displayed as-is. WARNING: Makes t NonNullable as a side effect.

Check for type equality without breaking TS for this repo. Fails on some types like Dict/{}

Mimics the result of Object.keys(...)

Replace existing keys of o without altering readonly or optional modifiers

Either: A, with all properties of B undefined OR B, with all properties of A undefined