1 | import * as ts from 'typescript';
|
2 | import { Decorator, ModifiersArray, Node, NodeArray, ObjectFlags, SyntaxKind, Type, TypeChecker, TypeFlags, TypeFormatFlags, UnionTypeNode } from 'typescript';
|
3 | export declare function getDecorators(node: ts.Node): readonly ts.Decorator[];
|
4 | export declare function getModifiers(node: ts.Node): readonly ts.Modifier[];
|
5 | export declare function isArray(type: Type): boolean;
|
6 | export declare function getTypeArguments(type: Type): any;
|
7 | export declare function isBoolean(type: Type): boolean;
|
8 | export declare function isString(type: Type): boolean;
|
9 | export declare function isStringLiteral(type: Type): boolean;
|
10 | export declare function isBigInt(type: Type): boolean;
|
11 | export declare function isNumber(type: Type): boolean;
|
12 | export declare function isInterface(type: Type): boolean;
|
13 | export declare function isEnum(type: Type): boolean;
|
14 | export declare function isEnumLiteral(type: Type): boolean;
|
15 | export declare function isNull(type: Type): boolean;
|
16 | export declare function isUndefined(type: Type): boolean;
|
17 | export declare function hasFlag(type: Type, flag: TypeFlags): boolean;
|
18 | export declare function hasObjectFlag(type: Type, flag: ObjectFlags): boolean;
|
19 | export declare function getText(type: Type, typeChecker: TypeChecker, enclosingNode?: Node, typeFormatFlags?: TypeFormatFlags): string;
|
20 | export declare function getDefaultTypeFormatFlags(enclosingNode: Node): number;
|
21 | export declare function getDecoratorArguments(decorator: Decorator): any[] | ts.NodeArray<ts.Expression>;
|
22 | export declare function getDecoratorName(decorator: Decorator): string;
|
23 | export declare function getJSDocDescription(node: Node): string;
|
24 | export declare function hasJSDocTags(node: Node, tagName: string[]): boolean;
|
25 | export declare function getJsDocDeprecation(node: Node): string;
|
26 | export declare function findNullableTypeFromUnion(typeNode: UnionTypeNode, typeChecker: TypeChecker): ts.TypeNode;
|
27 | export declare function hasModifiers(modifiers: ModifiersArray | readonly ts.Modifier[], toCheck: SyntaxKind[]): boolean;
|
28 | export declare function hasDecorators(decorators: NodeArray<Decorator> | readonly Decorator[], toCheck: string[]): boolean;
|
29 | export declare function hasImport(sf: ts.SourceFile, what: string): boolean;
|
30 | export declare function createImportEquals(f: ts.NodeFactory, identifier: ts.Identifier | string, from: string): ts.ImportEqualsDeclaration;
|
31 | export declare function createNamedImport(f: ts.NodeFactory, what: string[], from: string): ts.ImportDeclaration;
|
32 | export declare function isCallExpressionOf(name: string, node: ts.CallExpression): boolean;
|
33 | export type PrimitiveObject = {
|
34 | [key: string]: string | boolean | ts.Node | PrimitiveObject;
|
35 | };
|
36 | export declare function serializePrimitiveObjectToAst(f: ts.NodeFactory, object: PrimitiveObject): ts.ObjectLiteralExpression;
|
37 | export declare function safelyMergeObjects(f: ts.NodeFactory, a: ts.Expression, b: ts.Expression): ts.ObjectLiteralExpression;
|
38 | export declare function updateDecoratorArguments<T extends ts.ClassDeclaration | ts.PropertyDeclaration | ts.GetAccessorDeclaration>(f: ts.NodeFactory, node: T, decoratorName: string, replaceFn: (decoratorArguments: ts.NodeArray<ts.Expression>) => ts.Expression[]): T;
|
39 |
|
\ | No newline at end of file |