UNPKG

typia

Version:

Superfast runtime validators with only one line

11 lines (10 loc) 578 B
import ts from "typescript"; import { IProject } from "../../transformers/IProject"; export declare namespace FunctionalValidateFunctionProgrammer { const write: (project: IProject) => (modulo: ts.LeftHandSideExpression) => (equals: boolean) => (expression: ts.Expression, declaration: ts.FunctionDeclaration) => ts.CallExpression; const hookErrors: (props: { expression: ts.Expression; replacer: ts.Expression; }) => ts.CallExpression; const getReturnTypeNode: (declaration: ts.FunctionDeclaration, async: boolean) => ts.TypeNode | undefined; }