UNPKG

typia

Version:

Superfast runtime validators with only one line

21 lines (20 loc) 659 B
import ts from "typescript"; import { ITypiaContext } from "../../transformers/ITypiaContext"; export declare namespace FunctionalIsFunctionProgrammer { interface IConfig { equals: boolean; } interface IProps { context: ITypiaContext; modulo: ts.LeftHandSideExpression; config: IConfig; declaration: ts.FunctionDeclaration; expression: ts.Expression; init?: ts.Expression | undefined; } const write: (props: IProps) => ts.CallExpression; const getReturnTypeNode: (props: { declaration: ts.FunctionDeclaration; async: boolean; }) => ts.TypeNode | undefined; }