typia
Version:
Superfast runtime validators with only one line
9 lines (8 loc) • 339 B
TypeScript
import ts from "typescript";
export declare namespace ValueFactory {
const NULL: () => ts.NullLiteral;
const UNDEFINED: () => ts.Identifier;
const BOOLEAN: (value: boolean) => ts.TrueLiteral | ts.FalseLiteral;
const INPUT: (str?: string) => ts.Identifier;
const TYPEOF: (input: ts.Expression) => ts.TypeOfExpression;
}