@typescript-eslint/types
Advanced tools
Comparing version 4.0.0-alpha.0 to 4.0.0-alpha.1
@@ -13,2 +13,3 @@ declare enum AST_NODE_TYPES { | ||
CatchClause = "CatchClause", | ||
ChainExpression = "ChainExpression", | ||
ClassBody = "ClassBody", | ||
@@ -65,4 +66,2 @@ ClassDeclaration = "ClassDeclaration", | ||
ObjectPattern = "ObjectPattern", | ||
OptionalCallExpression = "OptionalCallExpression", | ||
OptionalMemberExpression = "OptionalMemberExpression", | ||
Program = "Program", | ||
@@ -69,0 +68,0 @@ Property = "Property", |
@@ -17,2 +17,3 @@ "use strict"; | ||
AST_NODE_TYPES["CatchClause"] = "CatchClause"; | ||
AST_NODE_TYPES["ChainExpression"] = "ChainExpression"; | ||
AST_NODE_TYPES["ClassBody"] = "ClassBody"; | ||
@@ -69,4 +70,2 @@ AST_NODE_TYPES["ClassDeclaration"] = "ClassDeclaration"; | ||
AST_NODE_TYPES["ObjectPattern"] = "ObjectPattern"; | ||
AST_NODE_TYPES["OptionalCallExpression"] = "OptionalCallExpression"; | ||
AST_NODE_TYPES["OptionalMemberExpression"] = "OptionalMemberExpression"; | ||
AST_NODE_TYPES["Program"] = "Program"; | ||
@@ -73,0 +72,0 @@ AST_NODE_TYPES["Property"] = "Property"; |
@@ -92,6 +92,7 @@ import { AST_NODE_TYPES } from './ast-node-types'; | ||
}; | ||
export declare type Node = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ClassBody | ClassDeclaration | ClassExpression | ClassProperty | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXMemberExpression | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | OptionalCallExpression | OptionalMemberExpression | Program | Property | RestElement | ReturnStatement | SequenceExpression | SpreadElement | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractClassProperty | TSAbstractKeyword | TSAbstractMethodDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInterfaceDeclaration | TSInterfaceBody | TSInterfaceHeritage | TSIntersectionType | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSPublicKeyword | TSPrivateKeyword | TSProtectedKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UpdateExpression | UnaryExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression; | ||
export declare type Node = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ChainExpression | ClassBody | ClassDeclaration | ClassExpression | ClassProperty | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXMemberExpression | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | Program | Property | RestElement | ReturnStatement | SequenceExpression | SpreadElement | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractClassProperty | TSAbstractKeyword | TSAbstractMethodDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInterfaceDeclaration | TSInterfaceBody | TSInterfaceHeritage | TSIntersectionType | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSPublicKeyword | TSPrivateKeyword | TSProtectedKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UpdateExpression | UnaryExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression; | ||
export declare type Accessibility = 'public' | 'protected' | 'private'; | ||
export declare type BindingPattern = ArrayPattern | ObjectPattern; | ||
export declare type BindingName = BindingPattern | Identifier; | ||
export declare type ChainElement = CallExpression | MemberExpression; | ||
export declare type ClassElement = ClassProperty | MethodDefinition | TSAbstractClassProperty | TSAbstractMethodDefinition | TSIndexSignature; | ||
@@ -103,3 +104,3 @@ export declare type ClassProperty = ClassPropertyComputedName | ClassPropertyNonComputedName; | ||
export declare type ExportDeclaration = ClassDeclaration | ClassExpression | FunctionDeclaration | TSDeclareFunction | TSEnumDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration; | ||
export declare type Expression = ArrowFunctionExpression | AssignmentExpression | BinaryExpression | ConditionalExpression | ImportExpression | JSXClosingElement | JSXClosingFragment | JSXExpressionContainer | JSXOpeningElement | JSXOpeningFragment | JSXSpreadChild | LogicalExpression | NewExpression | RestElement | SequenceExpression | SpreadElement | TSAsExpression | TSUnaryExpression | YieldExpression; | ||
export declare type Expression = ArrowFunctionExpression | AssignmentExpression | BinaryExpression | ChainExpression | ConditionalExpression | ImportExpression | JSXClosingElement | JSXClosingFragment | JSXExpressionContainer | JSXOpeningElement | JSXOpeningFragment | JSXSpreadChild | LogicalExpression | NewExpression | RestElement | SequenceExpression | SpreadElement | TSAsExpression | TSUnaryExpression | YieldExpression; | ||
export declare type ForInitialiser = Expression | VariableDeclaration; | ||
@@ -111,3 +112,3 @@ export declare type ImportClause = ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier; | ||
export declare type JSXTagNameExpression = JSXIdentifier | JSXMemberExpression; | ||
export declare type LeftHandSideExpression = CallExpression | ClassExpression | ClassDeclaration | FunctionExpression | LiteralExpression | MemberExpression | OptionalCallExpression | OptionalMemberExpression | PrimaryExpression | TaggedTemplateExpression | TSNonNullExpression | TSAsExpression | ArrowFunctionExpression; | ||
export declare type LeftHandSideExpression = CallExpression | ClassExpression | ClassDeclaration | FunctionExpression | LiteralExpression | MemberExpression | PrimaryExpression | TaggedTemplateExpression | TSNonNullExpression | TSAsExpression | ArrowFunctionExpression; | ||
export declare type Literal = BigIntLiteral | BooleanLiteral | NumberLiteral | NullLiteral | RegExpLiteral | StringLiteral; | ||
@@ -119,3 +120,2 @@ export declare type LiteralExpression = Literal | TemplateLiteral; | ||
export declare type ObjectLiteralElementLike = MethodDefinition | Property | SpreadElement | TSAbstractMethodDefinition; | ||
export declare type OptionalMemberExpression = OptionalMemberExpressionComputedName | OptionalMemberExpressionNonComputedName; | ||
export declare type Parameter = ArrayPattern | AssignmentPattern | Identifier | ObjectPattern | RestElement | TSParameterProperty; | ||
@@ -347,5 +347,8 @@ export declare type PrimaryExpression = ArrayExpression | ArrayPattern | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | JSXOpeningElement | Literal | LiteralExpression | MetaProperty | ObjectExpression | ObjectPattern | Super | TemplateLiteral | ThisExpression | TSNullKeyword; | ||
} | ||
export interface ChainExpression extends BaseNode { | ||
type: AST_NODE_TYPES.ChainExpression; | ||
expression: ChainElement; | ||
} | ||
export interface CallExpression extends CallExpressionBase { | ||
type: AST_NODE_TYPES.CallExpression; | ||
optional: false; | ||
} | ||
@@ -564,7 +567,5 @@ export interface CatchClause extends BaseNode { | ||
type: AST_NODE_TYPES.MemberExpression; | ||
optional: false; | ||
} | ||
export interface MemberExpressionNonComputedName extends MemberExpressionNonComputedNameBase { | ||
type: AST_NODE_TYPES.MemberExpression; | ||
optional: false; | ||
} | ||
@@ -607,14 +608,2 @@ export interface MetaProperty extends BaseNode { | ||
} | ||
export interface OptionalCallExpression extends CallExpressionBase { | ||
type: AST_NODE_TYPES.OptionalCallExpression; | ||
optional: boolean; | ||
} | ||
export interface OptionalMemberExpressionComputedName extends MemberExpressionComputedNameBase { | ||
type: AST_NODE_TYPES.OptionalMemberExpression; | ||
optional: boolean; | ||
} | ||
export interface OptionalMemberExpressionNonComputedName extends MemberExpressionNonComputedNameBase { | ||
type: AST_NODE_TYPES.OptionalMemberExpression; | ||
optional: boolean; | ||
} | ||
export interface Program extends BaseNode { | ||
@@ -874,3 +863,3 @@ type: AST_NODE_TYPES.Program; | ||
type: AST_NODE_TYPES.TSMappedType; | ||
typeParameter: TSTypeParameterDeclaration; | ||
typeParameter: TSTypeParameter; | ||
readonly?: boolean | '-' | '+'; | ||
@@ -895,3 +884,3 @@ optional?: boolean | '-' | '+'; | ||
id: Identifier | Literal; | ||
body?: TSModuleBlock | TSModuleDeclaration; | ||
body?: TSModuleBlock; | ||
global?: boolean; | ||
@@ -898,0 +887,0 @@ declare?: boolean; |
{ | ||
"name": "@typescript-eslint/types", | ||
"version": "4.0.0-alpha.0+2edbca38", | ||
"version": "4.0.0-alpha.1+abb0617e", | ||
"description": "Types for the TypeScript-ESTree AST spec", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "2edbca380bd8f317cd96bac0df5030ddcd14a6af" | ||
"gitHead": "abb0617e7cda636064193c65c73f8f8c08d8cb56" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
111764
1529