UNPKG

@sinclair/typebox

Version:

Json Schema Type Builder with Static Type Resolution for TypeScript

10 lines (9 loc) 374 B
import type { TSchema } from '../schema/index.mjs'; import { Kind } from '../symbols/index.mjs'; export interface TArgument<Index extends number = number> extends TSchema { [Kind]: 'Argument'; static: unknown; index: Index; } /** `[JavaScript]` Creates an Argument Type. */ export declare function Argument<Index extends number>(index: Index): TArgument<Index>;