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