UNPKG

castage

Version:

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

3 lines (2 loc) 148 B
import { Caster } from './types.js'; export declare const tuple: <T extends unknown[]>(...casters: { [K in keyof T]: Caster<T[K]>; }) => Caster<T>;