1 | import * as ts from 'typescript';
|
2 | import { PropertyName } from './util';
|
3 | export declare function isEmptyObjectType(type: ts.Type): type is ts.ObjectType;
|
4 | export declare function removeOptionalityFromType(checker: ts.TypeChecker, type: ts.Type): ts.Type;
|
5 | export declare function removeOptionalChainingUndefinedMarkerType(checker: ts.TypeChecker, type: ts.Type): ts.Type;
|
6 | export declare function isOptionalChainingUndefinedMarkerType(checker: ts.TypeChecker, t: ts.Type): boolean;
|
7 | export declare function isTypeAssignableToNumber(checker: ts.TypeChecker, type: ts.Type): boolean;
|
8 | export declare function isTypeAssignableToString(checker: ts.TypeChecker, type: ts.Type): boolean;
|
9 | export declare function getCallSignaturesOfType(type: ts.Type): ReadonlyArray<ts.Signature>;
|
10 |
|
11 | export declare function unionTypeParts(type: ts.Type): ts.Type[];
|
12 |
|
13 | export declare function intersectionTypeParts(type: ts.Type): ts.Type[];
|
14 | export declare function someTypePart(type: ts.Type, predicate: (t: ts.Type) => t is ts.UnionOrIntersectionType, cb: (t: ts.Type) => boolean): boolean;
|
15 |
|
16 | export declare function isThenableType(checker: ts.TypeChecker, node: ts.Node, type: ts.Type): boolean;
|
17 |
|
18 | export declare function isThenableType(checker: ts.TypeChecker, node: ts.Expression, type?: ts.Type): boolean;
|
19 |
|
20 | export declare function isFalsyType(type: ts.Type): boolean;
|
21 |
|
22 | export declare function isBooleanLiteralType(type: ts.Type, literal: boolean): boolean;
|
23 | export declare function getPropertyOfType(type: ts.Type, name: ts.__String): ts.Symbol | undefined;
|
24 | export declare function getWellKnownSymbolPropertyOfType(type: ts.Type, wellKnownSymbolName: string, checker: ts.TypeChecker): ts.Symbol | undefined;
|
25 |
|
26 | export declare function isPropertyReadonlyInType(type: ts.Type, name: ts.__String, checker: ts.TypeChecker): boolean;
|
27 | export declare function symbolHasReadonlyDeclaration(symbol: ts.Symbol, checker: ts.TypeChecker): boolean;
|
28 |
|
29 | export declare function getPropertyNameFromType(type: ts.Type): PropertyName | undefined;
|
30 | export declare function getSymbolOfClassLikeDeclaration(node: ts.ClassLikeDeclaration, checker: ts.TypeChecker): ts.Symbol;
|
31 | export declare function getConstructorTypeOfClassLikeDeclaration(node: ts.ClassLikeDeclaration, checker: ts.TypeChecker): ts.Type;
|
32 | export declare function getInstanceTypeOfClassLikeDeclaration(node: ts.ClassLikeDeclaration, checker: ts.TypeChecker): ts.Type;
|
33 | export declare function getIteratorYieldResultFromIteratorResult(type: ts.Type, node: ts.Node, checker: ts.TypeChecker): ts.Type;
|
34 |
|
35 | export declare function getBaseClassMemberOfClassElement(node: ts.PropertyDeclaration | ts.MethodDeclaration | ts.AccessorDeclaration, checker: ts.TypeChecker): ts.Symbol | undefined;
|