| 1 | import type { TSESTree } from '@typescript-eslint/types';
|
|---|
| 2 | export declare function isArrayExpression(node: TSESTree.Node): node is TSESTree.ArrayExpression;
|
|---|
| 3 | export declare function isArrowFunctionExpression(node: TSESTree.Node): node is TSESTree.ArrowFunctionExpression;
|
|---|
| 4 | /** default parameters */
|
|---|
| 5 | export declare function isAssignmentPattern(node: TSESTree.Node): node is TSESTree.AssignmentPattern;
|
|---|
| 6 | export declare function isClassDeclaration(node: TSESTree.Node): node is TSESTree.ClassDeclaration;
|
|---|
| 7 | export declare function isClassExpression(node: TSESTree.Node): node is TSESTree.ClassExpression;
|
|---|
| 8 | export declare function isExportDefaultDeclaration(node: TSESTree.Node): node is TSESTree.ExportDefaultDeclaration;
|
|---|
| 9 | export declare function isExpression(node: TSESTree.Node): node is TSESTree.Expression;
|
|---|
| 10 | export declare function isFunctionDeclaration(node: TSESTree.Node): node is TSESTree.FunctionDeclaration;
|
|---|
| 11 | export declare function isFunctionExpression(node: TSESTree.Node): node is TSESTree.FunctionExpression;
|
|---|
| 12 | export declare function isIdentifier(node: TSESTree.Node): node is TSESTree.Identifier;
|
|---|
| 13 | export declare function isLiteral(node: TSESTree.Node): node is TSESTree.Literal;
|
|---|
| 14 | export declare function isMethodDefinition(node: TSESTree.Node): node is TSESTree.MethodDefinition;
|
|---|
| 15 | export declare function isObjectExpression(node: TSESTree.Node): node is TSESTree.ObjectExpression;
|
|---|
| 16 | export declare function isPrivateIdentifier(node: TSESTree.Node): node is TSESTree.PrivateIdentifier;
|
|---|
| 17 | export declare function isProperty(node: TSESTree.Node): node is TSESTree.Property;
|
|---|
| 18 | export declare function isPropertyDefinition(node: TSESTree.Node): node is TSESTree.PropertyDefinition;
|
|---|
| 19 | export declare function isTSEnumDeclaration(node: TSESTree.Node): node is TSESTree.TSEnumDeclaration;
|
|---|
| 20 | export declare function isTSInterfaceDeclaration(node: TSESTree.Node): node is TSESTree.TSInterfaceDeclaration;
|
|---|
| 21 | export declare function isTSModuleDeclaration(node: TSESTree.Node): node is TSESTree.TSModuleDeclaration;
|
|---|
| 22 | export declare function isTSQualifiedName(node: TSESTree.Node): node is TSESTree.TSQualifiedName;
|
|---|
| 23 | export declare function isTSTypeAliasDeclaration(node: TSESTree.Node): node is TSESTree.TSTypeAliasDeclaration;
|
|---|
| 24 | export declare function isVariableDeclarator(node: TSESTree.Node): node is TSESTree.VariableDeclarator;
|
|---|
| 25 | export declare function isClassDeclarationWithName(node: TSESTree.Node): node is TSESTree.ClassDeclarationWithName;
|
|---|
| 26 | export declare function isClassPropertyNameNonComputed(node: TSESTree.Node): node is TSESTree.ClassPropertyNameNonComputed;
|
|---|
| 27 | export declare function isFunctionDeclarationWithName(node: TSESTree.Node): node is TSESTree.FunctionDeclarationWithName;
|
|---|
| 28 | export declare function isNumberLiteral(node: TSESTree.Node): node is TSESTree.NumberLiteral;
|
|---|
| 29 | export declare function isPropertyNameNonComputed(node: TSESTree.Node): node is TSESTree.PropertyNameNonComputed;
|
|---|
| 30 | export declare function isStringLiteral(node: TSESTree.Node): node is TSESTree.StringLiteral;
|
|---|
| 31 | export interface IClassExpressionWithName extends TSESTree.ClassExpression {
|
|---|
| 32 | id: TSESTree.Identifier;
|
|---|
| 33 | }
|
|---|
| 34 | export declare function isClassExpressionWithName(node: TSESTree.Node): node is IClassExpressionWithName;
|
|---|
| 35 | export interface IFunctionExpressionWithName extends TSESTree.FunctionExpression {
|
|---|
| 36 | id: TSESTree.Identifier;
|
|---|
| 37 | }
|
|---|
| 38 | export declare function isFunctionExpressionWithName(node: TSESTree.Node): node is IFunctionExpressionWithName;
|
|---|
| 39 | export type NormalAnonymousExpression = TSESTree.ArrowFunctionExpression | TSESTree.ClassExpression | TSESTree.FunctionExpression | TSESTree.ObjectExpression;
|
|---|
| 40 | export declare function isNormalAnonymousExpression(node: TSESTree.Node): node is NormalAnonymousExpression;
|
|---|
| 41 | export interface INormalAssignmentPattern extends TSESTree.AssignmentPattern {
|
|---|
| 42 | left: TSESTree.Identifier;
|
|---|
| 43 | }
|
|---|
| 44 | export declare function isNormalAssignmentPattern(node: TSESTree.Node): node is INormalAssignmentPattern;
|
|---|
| 45 | export interface INormalClassPropertyDefinition extends TSESTree.PropertyDefinitionNonComputedName {
|
|---|
| 46 | key: TSESTree.PrivateIdentifier | TSESTree.Identifier;
|
|---|
| 47 | value: TSESTree.Expression;
|
|---|
| 48 | }
|
|---|
| 49 | export declare function isNormalClassPropertyDefinition(node: TSESTree.Node): node is INormalClassPropertyDefinition;
|
|---|
| 50 | export interface INormalMethodDefinition extends TSESTree.MethodDefinitionNonComputedName {
|
|---|
| 51 | key: TSESTree.PrivateIdentifier | TSESTree.Identifier;
|
|---|
| 52 | }
|
|---|
| 53 | export declare function isNormalMethodDefinition(node: TSESTree.Node): node is INormalMethodDefinition;
|
|---|
| 54 | export interface INormalObjectProperty extends TSESTree.PropertyNonComputedName {
|
|---|
| 55 | key: TSESTree.Identifier;
|
|---|
| 56 | }
|
|---|
| 57 | export declare function isNormalObjectProperty(node: TSESTree.Node): node is INormalObjectProperty;
|
|---|
| 58 | export type INormalVariableDeclarator = TSESTree.LetOrConstOrVarDeclaration & {
|
|---|
| 59 | id: TSESTree.Identifier;
|
|---|
| 60 | init: TSESTree.Expression;
|
|---|
| 61 | };
|
|---|
| 62 | export declare function isNormalVariableDeclarator(node: TSESTree.Node): node is INormalVariableDeclarator;
|
|---|
| 63 | export interface INormalAssignmentPatternWithAnonymousExpressionAssigned extends INormalAssignmentPattern {
|
|---|
| 64 | right: NormalAnonymousExpression;
|
|---|
| 65 | }
|
|---|
| 66 | export declare function isNormalAssignmentPatternWithAnonymousExpressionAssigned(node: TSESTree.Node): node is INormalAssignmentPatternWithAnonymousExpressionAssigned;
|
|---|
| 67 | export type INormalVariableDeclaratorWithAnonymousExpressionAssigned = INormalVariableDeclarator & {
|
|---|
| 68 | init: NormalAnonymousExpression;
|
|---|
| 69 | };
|
|---|
| 70 | export declare function isNormalVariableDeclaratorWithAnonymousExpressionAssigned(node: TSESTree.Node): node is INormalVariableDeclaratorWithAnonymousExpressionAssigned;
|
|---|
| 71 | export interface INormalObjectPropertyWithAnonymousExpressionAssigned extends INormalObjectProperty {
|
|---|
| 72 | value: NormalAnonymousExpression;
|
|---|
| 73 | }
|
|---|
| 74 | export declare function isNormalObjectPropertyWithAnonymousExpressionAssigned(node: TSESTree.Node): node is INormalObjectPropertyWithAnonymousExpressionAssigned;
|
|---|
| 75 | export interface INormalClassPropertyDefinitionWithAnonymousExpressionAssigned extends INormalClassPropertyDefinition {
|
|---|
| 76 | value: NormalAnonymousExpression;
|
|---|
| 77 | }
|
|---|
| 78 | export declare function isNormalClassPropertyDefinitionWithAnonymousExpressionAssigned(node: TSESTree.Node): node is INormalClassPropertyDefinitionWithAnonymousExpressionAssigned;
|
|---|
| 79 | export type NodeWithName = TSESTree.ClassDeclarationWithName | TSESTree.FunctionDeclarationWithName | IClassExpressionWithName | IFunctionExpressionWithName | INormalVariableDeclaratorWithAnonymousExpressionAssigned | INormalObjectPropertyWithAnonymousExpressionAssigned | INormalClassPropertyDefinitionWithAnonymousExpressionAssigned | INormalAssignmentPatternWithAnonymousExpressionAssigned | INormalMethodDefinition | TSESTree.TSEnumDeclaration | TSESTree.TSInterfaceDeclaration | TSESTree.TSTypeAliasDeclaration;
|
|---|
| 80 | export declare function isNodeWithName(node: TSESTree.Node): node is NodeWithName;
|
|---|
| 81 | //# sourceMappingURL=ast-guards.d.ts.map |
|---|