Socket
Socket
Sign inDemoInstall

@typescript-eslint/types

Package Overview
Dependencies
Maintainers
1
Versions
3091
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typescript-eslint/types - npm Package Compare versions

Comparing version 3.10.2-alpha.0 to 3.10.2-alpha.16

3

dist/ast-node-types.d.ts

@@ -13,2 +13,3 @@ declare enum AST_NODE_TYPES {

CatchClause = "CatchClause",
ChainExpression = "ChainExpression",
ClassBody = "ClassBody",

@@ -64,4 +65,2 @@ ClassDeclaration = "ClassDeclaration",

ObjectPattern = "ObjectPattern",
OptionalCallExpression = "OptionalCallExpression",
OptionalMemberExpression = "OptionalMemberExpression",
Program = "Program",

@@ -68,0 +67,0 @@ Property = "Property",

@@ -17,2 +17,3 @@ "use strict";

AST_NODE_TYPES["CatchClause"] = "CatchClause";
AST_NODE_TYPES["ChainExpression"] = "ChainExpression";
AST_NODE_TYPES["ClassBody"] = "ClassBody";

@@ -68,4 +69,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";

@@ -72,0 +71,0 @@ AST_NODE_TYPES["Property"] = "Property";

@@ -0,1 +1,2 @@

import * as TSESTree from './ts-estree';
export { AST_NODE_TYPES } from './ast-node-types';

@@ -5,3 +6,3 @@ export { AST_TOKEN_TYPES } from './ast-token-types';

export * from './parser-options';
export * as TSESTree from './ts-estree';
export { TSESTree };
//# sourceMappingURL=index.d.ts.map

@@ -14,5 +14,2 @@ "use strict";

});
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __importStar = (this && this.__importStar) || function (mod) {

@@ -25,4 +22,11 @@ if (mod && mod.__esModule) return mod;

};
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TSESTree = exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0;
// TODO(Brad Zacher) - convert this to export * as TSESTree from './ts-estree'
// https://github.com/sandersn/downlevel-dts/pull/42
const TSESTree = __importStar(require("./ts-estree"));
exports.TSESTree = TSESTree;
var ast_node_types_1 = require("./ast-node-types");

@@ -34,3 +38,2 @@ Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return ast_node_types_1.AST_NODE_TYPES; } });

__exportStar(require("./parser-options"), exports);
exports.TSESTree = __importStar(require("./ts-estree"));
//# sourceMappingURL=index.js.map

@@ -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 | JSXMemberExpression | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | 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 | 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 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';
export declare type BindingPattern = ArrayPattern | ObjectPattern;
export declare type BindingName = BindingPattern | Identifier;
export declare type ChainElement = CallExpression | MemberExpression | TSNonNullExpression;
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;
}

@@ -449,3 +452,2 @@ export interface CatchClause extends BaseNode {

body: BlockStatement;
decorators?: Decorator[];
}

@@ -565,7 +567,5 @@ export interface FunctionExpression extends FunctionDeclarationBase {

type: AST_NODE_TYPES.MemberExpression;
optional: false;
}
export interface MemberExpressionNonComputedName extends MemberExpressionNonComputedNameBase {
type: AST_NODE_TYPES.MemberExpression;
optional: false;
}

@@ -608,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 {

@@ -781,3 +769,2 @@ type: AST_NODE_TYPES.Program;

modifiers?: Modifier[];
decorators?: Decorator[];
}

@@ -855,3 +842,2 @@ /**

implements?: TSInterfaceHeritage[];
decorators?: Decorator[];
abstract?: boolean;

@@ -877,3 +863,3 @@ declare?: boolean;

type: AST_NODE_TYPES.TSMappedType;
typeParameter: TSTypeParameterDeclaration;
typeParameter: TSTypeParameter;
readonly?: boolean | '-' | '+';

@@ -898,3 +884,3 @@ optional?: boolean | '-' | '+';

id: Identifier | Literal;
body?: TSModuleBlock | TSModuleDeclaration;
body?: TSModuleBlock;
global?: boolean;

@@ -901,0 +887,0 @@ declare?: boolean;

{
"name": "@typescript-eslint/types",
"version": "3.10.2-alpha.0+43b1201a",
"version": "3.10.2-alpha.16+4ff8c43f",
"description": "Types for the TypeScript-ESTree AST spec",

@@ -32,3 +32,5 @@ "keywords": [

"build": "tsc -b tsconfig.build.json",
"postbuild": "downlevel-dts dist _ts3.4/dist",
"clean": "tsc -b tsconfig.build.json --clean",
"postclean": "rimraf dist",
"format": "prettier --write \"./**/*.{ts,js,json,md}\" --ignore-path ../../.prettierignore",

@@ -43,3 +45,10 @@ "generate:lib": "../../node_modules/.bin/ts-node --files --transpile-only ../scope-manager/tools/generate-lib.ts",

},
"gitHead": "43b1201a73687e29f19a16b0b26f68569f3c7a2e"
"typesVersions": {
"<3.8": {
"*": [
"_ts3.4/*"
]
}
},
"gitHead": "4ff8c43fcb0905635665aa05cb3d98421e7fa0b1"
}

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc