UNPKG

typia

Version:

Superfast runtime validators with only one line

9 lines (8 loc) 452 B
import ts from "typescript"; export declare namespace StatementFactory { const mut: (name: string, initializer?: ts.Expression) => ts.VariableStatement; const constant: (name: string, initializer?: ts.Expression) => ts.VariableStatement; const entry: (key: string) => (value: string) => ts.VariableDeclarationList; const transpile: (script: string) => ts.ExpressionStatement; const block: (expression: ts.Expression) => ts.Block; }