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

x/arktype/utils/generics.ts>evaluateObjectOrFunction

TypeScript's 1:1 validator, optimized from editor to runtime
Latest
type alias evaluateObjectOrFunction
import { type evaluateObjectOrFunction } from "https://deno.land/x/arktype@v1.0.10-alpha/utils/generics.ts";
definition: isTopType<t> extends true ? t : t extends (...args: infer args) => infer ret ? (...args: args) => ret : evaluate<t>