@typescript-eslint/types
Advanced tools
Comparing version 4.0.0-alpha.7 to 4.0.0-alpha.10
@@ -96,11 +96,11 @@ declare enum AST_NODE_TYPES { | ||
TSAsyncKeyword = "TSAsyncKeyword", | ||
TSBigIntKeyword = "TSBigIntKeyword", | ||
TSBooleanKeyword = "TSBooleanKeyword", | ||
TSBigIntKeyword = "TSBigIntKeyword", | ||
TSCallSignatureDeclaration = "TSCallSignatureDeclaration", | ||
TSClassImplements = "TSClassImplements", | ||
TSConditionalType = "TSConditionalType", | ||
TSConstructorType = "TSConstructorType", | ||
TSCallSignatureDeclaration = "TSCallSignatureDeclaration", | ||
TSClassImplements = "TSClassImplements", | ||
TSConstructSignatureDeclaration = "TSConstructSignatureDeclaration", | ||
TSDeclareFunction = "TSDeclareFunction", | ||
TSDeclareKeyword = "TSDeclareKeyword", | ||
TSDeclareFunction = "TSDeclareFunction", | ||
TSEmptyBodyFunctionExpression = "TSEmptyBodyFunctionExpression", | ||
@@ -112,23 +112,27 @@ TSEnumDeclaration = "TSEnumDeclaration", | ||
TSExternalModuleReference = "TSExternalModuleReference", | ||
TSFunctionType = "TSFunctionType", | ||
TSImportEqualsDeclaration = "TSImportEqualsDeclaration", | ||
TSImportType = "TSImportType", | ||
TSInferType = "TSInferType", | ||
TSLiteralType = "TSLiteralType", | ||
TSIndexedAccessType = "TSIndexedAccessType", | ||
TSIndexSignature = "TSIndexSignature", | ||
TSInferType = "TSInferType", | ||
TSInterfaceBody = "TSInterfaceBody", | ||
TSInterfaceDeclaration = "TSInterfaceDeclaration", | ||
TSInterfaceHeritage = "TSInterfaceHeritage", | ||
TSImportEqualsDeclaration = "TSImportEqualsDeclaration", | ||
TSFunctionType = "TSFunctionType", | ||
TSIntersectionType = "TSIntersectionType", | ||
TSLiteralType = "TSLiteralType", | ||
TSMappedType = "TSMappedType", | ||
TSMethodSignature = "TSMethodSignature", | ||
TSModuleBlock = "TSModuleBlock", | ||
TSModuleDeclaration = "TSModuleDeclaration", | ||
TSNamedTupleMember = "TSNamedTupleMember", | ||
TSNamespaceExportDeclaration = "TSNamespaceExportDeclaration", | ||
TSNeverKeyword = "TSNeverKeyword", | ||
TSNonNullExpression = "TSNonNullExpression", | ||
TSNeverKeyword = "TSNeverKeyword", | ||
TSNullKeyword = "TSNullKeyword", | ||
TSNumberKeyword = "TSNumberKeyword", | ||
TSMappedType = "TSMappedType", | ||
TSObjectKeyword = "TSObjectKeyword", | ||
TSOptionalType = "TSOptionalType", | ||
TSParameterProperty = "TSParameterProperty", | ||
TSParenthesizedType = "TSParenthesizedType", | ||
TSPrivateKeyword = "TSPrivateKeyword", | ||
@@ -145,4 +149,5 @@ TSPropertySignature = "TSPropertySignature", | ||
TSThisType = "TSThisType", | ||
TSTupleType = "TSTupleType", | ||
TSTypeAliasDeclaration = "TSTypeAliasDeclaration", | ||
TSTypeAnnotation = "TSTypeAnnotation", | ||
TSTypeAliasDeclaration = "TSTypeAliasDeclaration", | ||
TSTypeAssertion = "TSTypeAssertion", | ||
@@ -155,10 +160,6 @@ TSTypeLiteral = "TSTypeLiteral", | ||
TSTypePredicate = "TSTypePredicate", | ||
TSTypeQuery = "TSTypeQuery", | ||
TSTypeReference = "TSTypeReference", | ||
TSTypeQuery = "TSTypeQuery", | ||
TSIntersectionType = "TSIntersectionType", | ||
TSTupleType = "TSTupleType", | ||
TSOptionalType = "TSOptionalType", | ||
TSParenthesizedType = "TSParenthesizedType", | ||
TSUndefinedKeyword = "TSUndefinedKeyword", | ||
TSUnionType = "TSUnionType", | ||
TSUndefinedKeyword = "TSUndefinedKeyword", | ||
TSUnknownKeyword = "TSUnknownKeyword", | ||
@@ -165,0 +166,0 @@ TSVoidKeyword = "TSVoidKeyword" |
@@ -100,11 +100,11 @@ "use strict"; | ||
AST_NODE_TYPES["TSAsyncKeyword"] = "TSAsyncKeyword"; | ||
AST_NODE_TYPES["TSBigIntKeyword"] = "TSBigIntKeyword"; | ||
AST_NODE_TYPES["TSBooleanKeyword"] = "TSBooleanKeyword"; | ||
AST_NODE_TYPES["TSBigIntKeyword"] = "TSBigIntKeyword"; | ||
AST_NODE_TYPES["TSCallSignatureDeclaration"] = "TSCallSignatureDeclaration"; | ||
AST_NODE_TYPES["TSClassImplements"] = "TSClassImplements"; | ||
AST_NODE_TYPES["TSConditionalType"] = "TSConditionalType"; | ||
AST_NODE_TYPES["TSConstructorType"] = "TSConstructorType"; | ||
AST_NODE_TYPES["TSCallSignatureDeclaration"] = "TSCallSignatureDeclaration"; | ||
AST_NODE_TYPES["TSClassImplements"] = "TSClassImplements"; | ||
AST_NODE_TYPES["TSConstructSignatureDeclaration"] = "TSConstructSignatureDeclaration"; | ||
AST_NODE_TYPES["TSDeclareFunction"] = "TSDeclareFunction"; | ||
AST_NODE_TYPES["TSDeclareKeyword"] = "TSDeclareKeyword"; | ||
AST_NODE_TYPES["TSDeclareFunction"] = "TSDeclareFunction"; | ||
AST_NODE_TYPES["TSEmptyBodyFunctionExpression"] = "TSEmptyBodyFunctionExpression"; | ||
@@ -116,23 +116,27 @@ AST_NODE_TYPES["TSEnumDeclaration"] = "TSEnumDeclaration"; | ||
AST_NODE_TYPES["TSExternalModuleReference"] = "TSExternalModuleReference"; | ||
AST_NODE_TYPES["TSFunctionType"] = "TSFunctionType"; | ||
AST_NODE_TYPES["TSImportEqualsDeclaration"] = "TSImportEqualsDeclaration"; | ||
AST_NODE_TYPES["TSImportType"] = "TSImportType"; | ||
AST_NODE_TYPES["TSInferType"] = "TSInferType"; | ||
AST_NODE_TYPES["TSLiteralType"] = "TSLiteralType"; | ||
AST_NODE_TYPES["TSIndexedAccessType"] = "TSIndexedAccessType"; | ||
AST_NODE_TYPES["TSIndexSignature"] = "TSIndexSignature"; | ||
AST_NODE_TYPES["TSInferType"] = "TSInferType"; | ||
AST_NODE_TYPES["TSInterfaceBody"] = "TSInterfaceBody"; | ||
AST_NODE_TYPES["TSInterfaceDeclaration"] = "TSInterfaceDeclaration"; | ||
AST_NODE_TYPES["TSInterfaceHeritage"] = "TSInterfaceHeritage"; | ||
AST_NODE_TYPES["TSImportEqualsDeclaration"] = "TSImportEqualsDeclaration"; | ||
AST_NODE_TYPES["TSFunctionType"] = "TSFunctionType"; | ||
AST_NODE_TYPES["TSIntersectionType"] = "TSIntersectionType"; | ||
AST_NODE_TYPES["TSLiteralType"] = "TSLiteralType"; | ||
AST_NODE_TYPES["TSMappedType"] = "TSMappedType"; | ||
AST_NODE_TYPES["TSMethodSignature"] = "TSMethodSignature"; | ||
AST_NODE_TYPES["TSModuleBlock"] = "TSModuleBlock"; | ||
AST_NODE_TYPES["TSModuleDeclaration"] = "TSModuleDeclaration"; | ||
AST_NODE_TYPES["TSNamedTupleMember"] = "TSNamedTupleMember"; | ||
AST_NODE_TYPES["TSNamespaceExportDeclaration"] = "TSNamespaceExportDeclaration"; | ||
AST_NODE_TYPES["TSNeverKeyword"] = "TSNeverKeyword"; | ||
AST_NODE_TYPES["TSNonNullExpression"] = "TSNonNullExpression"; | ||
AST_NODE_TYPES["TSNeverKeyword"] = "TSNeverKeyword"; | ||
AST_NODE_TYPES["TSNullKeyword"] = "TSNullKeyword"; | ||
AST_NODE_TYPES["TSNumberKeyword"] = "TSNumberKeyword"; | ||
AST_NODE_TYPES["TSMappedType"] = "TSMappedType"; | ||
AST_NODE_TYPES["TSObjectKeyword"] = "TSObjectKeyword"; | ||
AST_NODE_TYPES["TSOptionalType"] = "TSOptionalType"; | ||
AST_NODE_TYPES["TSParameterProperty"] = "TSParameterProperty"; | ||
AST_NODE_TYPES["TSParenthesizedType"] = "TSParenthesizedType"; | ||
AST_NODE_TYPES["TSPrivateKeyword"] = "TSPrivateKeyword"; | ||
@@ -149,4 +153,5 @@ AST_NODE_TYPES["TSPropertySignature"] = "TSPropertySignature"; | ||
AST_NODE_TYPES["TSThisType"] = "TSThisType"; | ||
AST_NODE_TYPES["TSTupleType"] = "TSTupleType"; | ||
AST_NODE_TYPES["TSTypeAliasDeclaration"] = "TSTypeAliasDeclaration"; | ||
AST_NODE_TYPES["TSTypeAnnotation"] = "TSTypeAnnotation"; | ||
AST_NODE_TYPES["TSTypeAliasDeclaration"] = "TSTypeAliasDeclaration"; | ||
AST_NODE_TYPES["TSTypeAssertion"] = "TSTypeAssertion"; | ||
@@ -159,10 +164,6 @@ AST_NODE_TYPES["TSTypeLiteral"] = "TSTypeLiteral"; | ||
AST_NODE_TYPES["TSTypePredicate"] = "TSTypePredicate"; | ||
AST_NODE_TYPES["TSTypeQuery"] = "TSTypeQuery"; | ||
AST_NODE_TYPES["TSTypeReference"] = "TSTypeReference"; | ||
AST_NODE_TYPES["TSTypeQuery"] = "TSTypeQuery"; | ||
AST_NODE_TYPES["TSIntersectionType"] = "TSIntersectionType"; | ||
AST_NODE_TYPES["TSTupleType"] = "TSTupleType"; | ||
AST_NODE_TYPES["TSOptionalType"] = "TSOptionalType"; | ||
AST_NODE_TYPES["TSParenthesizedType"] = "TSParenthesizedType"; | ||
AST_NODE_TYPES["TSUndefinedKeyword"] = "TSUndefinedKeyword"; | ||
AST_NODE_TYPES["TSUnionType"] = "TSUnionType"; | ||
AST_NODE_TYPES["TSUndefinedKeyword"] = "TSUndefinedKeyword"; | ||
AST_NODE_TYPES["TSUnknownKeyword"] = "TSUnknownKeyword"; | ||
@@ -169,0 +170,0 @@ AST_NODE_TYPES["TSVoidKeyword"] = "TSVoidKeyword"; |
@@ -92,3 +92,3 @@ import { AST_NODE_TYPES } from './ast-node-types'; | ||
}; | ||
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 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 | JSXMemberExpression | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | 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 | TSInterfaceBody | TSInterfaceDeclaration | TSInterfaceHeritage | TSIntersectionType | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPrivateKeyword | TSPropertySignature | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression; | ||
export declare type Accessibility = 'public' | 'protected' | 'private'; | ||
@@ -132,3 +132,3 @@ export declare type BindingPattern = ArrayPattern | ObjectPattern; | ||
export declare type TypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSIndexSignature | TSMethodSignature | TSPropertySignature; | ||
export declare type TypeNode = TSAnyKeyword | TSArrayType | TSBigIntKeyword | TSBooleanKeyword | TSConditionalType | TSConstructorType | TSFunctionType | TSImportType | TSIndexedAccessType | TSInferType | TSInterfaceHeritage | TSIntersectionType | TSLiteralType | TSMappedType | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParenthesizedType | TSRestType | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSTypeLiteral | TSTypeOperator | TSTypePredicate | TSTypeReference | TSTypeQuery | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword; | ||
export declare type TypeNode = TSAnyKeyword | TSArrayType | TSBigIntKeyword | TSBooleanKeyword | TSConditionalType | TSConstructorType | TSFunctionType | TSImportType | TSIndexedAccessType | TSInferType | TSInterfaceHeritage | TSIntersectionType | TSLiteralType | TSMappedType | TSNamedTupleMember | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParenthesizedType | TSRestType | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSTypeLiteral | TSTypeOperator | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword; | ||
interface BinaryExpressionBase extends BaseNode { | ||
@@ -958,2 +958,8 @@ operator: string; | ||
} | ||
export interface TSNamedTupleMember extends BaseNode { | ||
type: AST_NODE_TYPES.TSNamedTupleMember; | ||
elementType: TypeNode; | ||
label: Identifier; | ||
optional: boolean; | ||
} | ||
export interface TSTupleType extends BaseNode { | ||
@@ -960,0 +966,0 @@ type: AST_NODE_TYPES.TSTupleType; |
{ | ||
"name": "@typescript-eslint/types", | ||
"version": "4.0.0-alpha.7+5ab473c0", | ||
"version": "4.0.0-alpha.10+e925538a", | ||
"description": "Types for the TypeScript-ESTree AST spec", | ||
@@ -43,3 +43,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "5ab473c07d43da70ddf8827efc8678c376fb15ab" | ||
"gitHead": "e925538a9620ffd6e302bfa4bfd008f453a24d00" | ||
} |
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
112222
1532