1 | import * as ts from "typescript";
|
2 | export declare namespace TSHelpers {
|
3 | type DeclarationWithTypeNode = ts.Declaration & {
|
4 | type?: ts.TypeNode;
|
5 | };
|
6 | function GetTypeTextFromDeclaration(declaration: DeclarationWithTypeNode): string;
|
7 | function GetReturnTypeTextFromDeclaration(declaration: ts.SignatureDeclaration, typeChecker: ts.TypeChecker): string;
|
8 | |
9 |
|
10 |
|
11 | function GetExportDeclarationImportString(declaration: ts.ExportDeclaration): string | undefined;
|
12 | |
13 |
|
14 |
|
15 | function GetSourceFileFromExport(declaration: ts.ExportDeclaration, program: ts.Program): ts.SourceFile | undefined;
|
16 | |
17 |
|
18 |
|
19 | function GetSymbolFromDeclaration(declaration: ts.Declaration, typeChecker: ts.TypeChecker): ts.Symbol | undefined;
|
20 | type TypeWithTypeArguments = ts.Type & {
|
21 | typeArguments: ts.Type[];
|
22 | };
|
23 | function IsTypeWithTypeArguments(type: ts.Type): type is TypeWithTypeArguments;
|
24 | function IsTypeUnionOrIntersectionType(type: ts.Type): type is ts.UnionOrIntersectionType;
|
25 | function IsTypeUnionType(type: ts.Type): type is ts.UnionType;
|
26 | function IsTypeIntersectionType(type: ts.Type): type is ts.IntersectionType;
|
27 | function GetResolvedModule(sourceFile: ts.SourceFile, moduleNameText: string): ts.ResolvedModuleFull | undefined;
|
28 | |
29 |
|
30 |
|
31 |
|
32 | function FollowSymbolAliases(symbol: ts.Symbol, typeChecker: ts.TypeChecker): ts.Symbol;
|
33 | }
|