1 | import { TSESTree } from '../ts-estree';
|
2 | declare function isOptionalChainPunctuator(token: TSESTree.Token): token is TSESTree.PunctuatorToken & {
|
3 | value: '?.';
|
4 | };
|
5 | declare function isNotOptionalChainPunctuator(token: TSESTree.Token): boolean;
|
6 | declare function isNonNullAssertionPunctuator(token: TSESTree.Token): token is TSESTree.PunctuatorToken & {
|
7 | value: '!';
|
8 | };
|
9 | declare function isNotNonNullAssertionPunctuator(token: TSESTree.Token): boolean;
|
10 |
|
11 |
|
12 |
|
13 | declare function isOptionalCallExpression(node: TSESTree.Node): node is TSESTree.CallExpression & {
|
14 | optional: true;
|
15 | };
|
16 |
|
17 |
|
18 |
|
19 | declare function isLogicalOrOperator(node: TSESTree.Node): node is TSESTree.LogicalExpression & {
|
20 | operator: '||';
|
21 | };
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | declare function isTypeAssertion(node: TSESTree.Node | undefined | null): node is TSESTree.TSAsExpression | TSESTree.TSTypeAssertion;
|
30 | declare function isVariableDeclarator(node: TSESTree.Node | undefined): node is TSESTree.VariableDeclarator;
|
31 | declare function isFunction(node: TSESTree.Node | undefined): node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression;
|
32 | declare function isFunctionType(node: TSESTree.Node | undefined): node is TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignature;
|
33 | declare function isFunctionOrFunctionType(node: TSESTree.Node | undefined): node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignature;
|
34 | declare function isTSFunctionType(node: TSESTree.Node | undefined): node is TSESTree.TSFunctionType;
|
35 | declare function isTSConstructorType(node: TSESTree.Node | undefined): node is TSESTree.TSConstructorType;
|
36 | declare function isClassOrTypeElement(node: TSESTree.Node | undefined): node is TSESTree.ClassElement | TSESTree.TypeElement;
|
37 |
|
38 |
|
39 |
|
40 | declare function isConstructor(node: TSESTree.Node | undefined): node is TSESTree.MethodDefinition;
|
41 |
|
42 |
|
43 |
|
44 | declare function isSetter(node: TSESTree.Node | undefined): node is TSESTree.MethodDefinition | TSESTree.Property;
|
45 | declare function isIdentifier(node: TSESTree.Node | undefined): node is TSESTree.Identifier;
|
46 |
|
47 |
|
48 |
|
49 | declare function isAwaitExpression(node: TSESTree.Node | undefined | null): node is TSESTree.AwaitExpression;
|
50 |
|
51 |
|
52 |
|
53 | declare function isAwaitKeyword(node: TSESTree.Token | undefined | null): node is TSESTree.IdentifierToken & {
|
54 | value: 'await';
|
55 | };
|
56 | declare function isLoop(node: TSESTree.Node | undefined | null): node is TSESTree.DoWhileStatement | TSESTree.ForStatement | TSESTree.ForInStatement | TSESTree.ForOfStatement | TSESTree.WhileStatement;
|
57 | export { isAwaitExpression, isAwaitKeyword, isConstructor, isClassOrTypeElement, isFunction, isFunctionOrFunctionType, isFunctionType, isIdentifier, isLoop, isLogicalOrOperator, isNonNullAssertionPunctuator, isNotNonNullAssertionPunctuator, isNotOptionalChainPunctuator, isOptionalChainPunctuator, isOptionalCallExpression, isSetter, isTSConstructorType, isTSFunctionType, isTypeAssertion, isVariableDeclarator, };
|
58 |
|
\ | No newline at end of file |