UNPKG

castage

Version:

A type-safe library for dynamic object casting and ensuring type consistency in JavaScript/TypeScript.

4 lines (3 loc) 226 B
import { type Caster } from './types'; export declare const value: <T extends string | number | boolean>(value: T) => Caster<T>; export declare const values: <T extends string | number | boolean>(...values: T[]) => Caster<T>;