UNPKG

typia

Version:

Superfast runtime validators with only one line

10 lines (9 loc) 523 B
import { Atomic } from "../../typings/Atomic"; import { IMetadataConstantValue } from "./IMetadataConstantValue"; export type IMetadataConstant = IMetadataConstant.IBase<"boolean", boolean> | IMetadataConstant.IBase<"number", number> | IMetadataConstant.IBase<"string", string> | IMetadataConstant.IBase<"bigint", string>; export declare namespace IMetadataConstant { interface IBase<Type extends Atomic.Literal, Value extends Atomic.Type> { type: Type; values: IMetadataConstantValue<Value>[]; } }