UNPKG

@maverick-js/compiler

Version:

Maverick toolchain including the analyzer and compiler.

14 lines (13 loc) 1.32 kB
import ts from 'typescript'; export declare function getProperties(checker: ts.TypeChecker, node: ts.Node): { props: Map<string, ts.PropertyAssignment>; }; export declare function getHeritage(checker: ts.TypeChecker, node: ts.ClassDeclaration | null): Map<string, ts.ClassDeclaration>; export declare function findPropertyAssignment(obj: ts.ObjectLiteralExpression, key: string): ts.ShorthandPropertyAssignment | ts.PropertyAssignment | ts.MethodDeclaration | undefined; export declare function getPropertyAssignmentValue(checker: ts.TypeChecker, obj: ts.ObjectLiteralExpression, key: string): ts.Declaration | ts.Expression | undefined; export declare function getValueNode(checker: ts.TypeChecker, node?: ts.Node): ts.Node | undefined; export declare function getDeepValueNode(checker: ts.TypeChecker, node?: ts.Node): ts.Node | undefined; export declare function isCallExpression(value: ts.Node | undefined, name: string): value is ts.CallExpression; export declare function getReturnStatement(node?: ts.ArrowFunction | ts.FunctionDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration): ts.ReturnStatement | undefined; export declare function getReturnExpression(node?: ts.Node): ts.Expression | undefined; export declare function isExportedVariableStatement(node: ts.Node): node is ts.VariableStatement;