typia
Version:
Superfast runtime validators with only one line
18 lines (17 loc) • 852 B
text/typescript
import ts from "typescript";
export declare namespace TypeFactory {
const isFunction: (type: ts.Type) => boolean;
const getFunction: (type: ts.Type) => ts.SignatureDeclaration | null;
const getReturnTypeOfClassMethod: (props: {
checker: ts.TypeChecker;
class: ts.Type;
function: string;
}) => ts.Type | null;
const getFullName: (props: {
checker: ts.TypeChecker;
type: ts.Type;
symbol?: ts.Symbol;
aliasTypeArguments?: boolean;
}) => string;
const keyword: (type: "void" | "any" | "unknown" | "boolean" | "number" | "bigint" | "string") => ts.KeywordTypeNode<ts.SyntaxKind.VoidKeyword | ts.SyntaxKind.AnyKeyword | ts.SyntaxKind.BooleanKeyword | ts.SyntaxKind.NumberKeyword | ts.SyntaxKind.StringKeyword | ts.SyntaxKind.UnknownKeyword | ts.SyntaxKind.BigIntKeyword>;
}