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

x/ayonli_jsext/workerd/index.ts>ValueOf

A JavaScript extension package for building strong and modern applications.
Latest
type alias ValueOf
import { type ValueOf } from "https://deno.land/x/ayonli_jsext@v0.9.72/workerd/index.ts";

Returns the primitive value held by the given type if its a wrapper object, otherwise returns the type itself.

definition: T extends String ? string : T extends Number ? number : T extends Boolean ? boolean : T extends BigInt ? bigint : T extends Symbol ? symbol : T