@depup/typescript-eslint__types 8.58.1-depup.0 → 8.66.0-depup.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/typescript-eslint__types
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [@typescript-eslint/types](https://www.npmjs.com/package/@typescript-eslint/types) @ 8.58.1 |
17
- | Processed | 2026-04-08 |
16
+ | Original | [@typescript-eslint/types](https://www.npmjs.com/package/@typescript-eslint/types) @ 8.66.0 |
17
+ | Processed | 2026-08-04 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 0 |
20
20
 
package/changes.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "bumped": {},
3
- "timestamp": "2026-04-08T04:54:18.394Z",
3
+ "timestamp": "2026-08-04T00:39:43.079Z",
4
4
  "totalUpdated": 0
5
5
  }
@@ -30,7 +30,8 @@ export declare interface ArrayPattern extends BaseNode {
30
30
  optional: boolean;
31
31
  typeAnnotation: TSTypeAnnotation | undefined;
32
32
  }
33
- export declare interface ArrowFunctionExpression extends BaseNode {
33
+ export declare type ArrowFunctionExpression = ArrowFunctionExpressionWithBlockBody | ArrowFunctionExpressionWithExpressionBody;
34
+ declare interface ArrowFunctionExpressionBase extends BaseNode {
34
35
  type: AST_NODE_TYPES.ArrowFunctionExpression;
35
36
  async: boolean;
36
37
  body: BlockStatement | Expression;
@@ -41,6 +42,14 @@ export declare interface ArrowFunctionExpression extends BaseNode {
41
42
  returnType: TSTypeAnnotation | undefined;
42
43
  typeParameters: TSTypeParameterDeclaration | undefined;
43
44
  }
45
+ export declare interface ArrowFunctionExpressionWithBlockBody extends ArrowFunctionExpressionBase {
46
+ body: BlockStatement;
47
+ expression: false;
48
+ }
49
+ export declare interface ArrowFunctionExpressionWithExpressionBody extends ArrowFunctionExpressionBase {
50
+ body: Expression;
51
+ expression: true;
52
+ }
44
53
  export declare interface AssignmentExpression extends BaseNode {
45
54
  type: AST_NODE_TYPES.AssignmentExpression;
46
55
  left: Expression;
@@ -810,6 +819,16 @@ export declare interface ImportDeclaration extends BaseNode {
810
819
  * The kind of the import.
811
820
  */
812
821
  importKind: ImportKind;
822
+ /**
823
+ * The phase of the import.
824
+ * `'defer'` when the import defers evaluation of the module until it is
825
+ * first used:
826
+ * ```ts
827
+ * import defer * as mod from 'mod';
828
+ * ```
829
+ * Otherwise `null`.
830
+ */
831
+ phase: 'defer' | null;
813
832
  /**
814
833
  * The source module being imported from.
815
834
  */
@@ -850,6 +869,15 @@ export declare interface ImportExpression extends BaseNode {
850
869
  * ```
851
870
  */
852
871
  options: Expression | null;
872
+ /**
873
+ * The phase modifier of the import.
874
+ * @example
875
+ * ```ts
876
+ * import('mod'); // phase: null
877
+ * import.defer('mod'); // phase: defer
878
+ * ```
879
+ */
880
+ phase: 'defer' | null;
853
881
  source: Expression;
854
882
  }
855
883
  declare type ImportKind = ExportAndImportKind;
@@ -2004,12 +2032,20 @@ export declare interface TSTypeParameterInstantiation extends BaseNode {
2004
2032
  type: AST_NODE_TYPES.TSTypeParameterInstantiation;
2005
2033
  params: TypeNode[];
2006
2034
  }
2007
- export declare interface TSTypePredicate extends BaseNode {
2035
+ export declare type TSTypePredicate = TSTypePredicateNoAsserts | TSTypePredicateWithAsserts;
2036
+ declare interface TSTypePredicateBase extends BaseNode {
2008
2037
  type: AST_NODE_TYPES.TSTypePredicate;
2009
2038
  asserts: boolean;
2010
2039
  parameterName: Identifier | TSThisType;
2011
2040
  typeAnnotation: TSTypeAnnotation | null;
2012
2041
  }
2042
+ export declare interface TSTypePredicateNoAsserts extends TSTypePredicateBase {
2043
+ asserts: false;
2044
+ typeAnnotation: TSTypeAnnotation;
2045
+ }
2046
+ export declare interface TSTypePredicateWithAsserts extends TSTypePredicateBase {
2047
+ asserts: true;
2048
+ }
2013
2049
  export declare interface TSTypeQuery extends BaseNode {
2014
2050
  type: AST_NODE_TYPES.TSTypeQuery;
2015
2051
  exprName: EntityName | TSImportType;
@@ -2038,9 +2074,14 @@ export declare type TypeElement = TSCallSignatureDeclaration | TSConstructSignat
2038
2074
  export declare type TypeNode = TSAbstractKeyword | TSAnyKeyword | TSArrayType | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSConditionalType | TSConstructorType | TSDeclareKeyword | TSExportKeyword | TSFunctionType | TSImportType | TSIndexedAccessType | TSInferType | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSNamedTupleMember | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSPrivateKeyword | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeLiteral | TSTypeOperator | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword;
2039
2075
  export declare type UnaryExpression = UnaryExpressionBitwiseNot | UnaryExpressionDelete | UnaryExpressionMinus | UnaryExpressionNot | UnaryExpressionPlus | UnaryExpressionTypeof | UnaryExpressionVoid;
2040
2076
  declare interface UnaryExpressionBase extends BaseNode {
2077
+ type: AST_NODE_TYPES.UnaryExpression;
2041
2078
  argument: Expression;
2042
2079
  operator: string;
2043
- prefix: boolean;
2080
+ /**
2081
+ * @deprecated The `prefix` property is always `true` and is only present for historical reasons.
2082
+ * See https://github.com/estree/estree/pull/118.
2083
+ */
2084
+ prefix: true;
2044
2085
  }
2045
2086
  export declare type UnaryExpressionBitwiseNot = UnaryExpressionSpecific<'~'>;
2046
2087
  export declare type UnaryExpressionDelete = UnaryExpressionSpecific<'delete'>;
@@ -2048,14 +2089,15 @@ export declare type UnaryExpressionMinus = UnaryExpressionSpecific<'-'>;
2048
2089
  export declare type UnaryExpressionNot = UnaryExpressionSpecific<'!'>;
2049
2090
  export declare type UnaryExpressionPlus = UnaryExpressionSpecific<'+'>;
2050
2091
  declare interface UnaryExpressionSpecific<T extends string> extends UnaryExpressionBase {
2051
- type: AST_NODE_TYPES.UnaryExpression;
2052
2092
  operator: T;
2053
2093
  }
2054
2094
  export declare type UnaryExpressionTypeof = UnaryExpressionSpecific<'typeof'>;
2055
2095
  export declare type UnaryExpressionVoid = UnaryExpressionSpecific<'void'>;
2056
- export declare interface UpdateExpression extends UnaryExpressionBase {
2096
+ export declare interface UpdateExpression extends BaseNode {
2057
2097
  type: AST_NODE_TYPES.UpdateExpression;
2098
+ argument: Expression;
2058
2099
  operator: '++' | '--';
2100
+ prefix: boolean;
2059
2101
  }
2060
2102
  export declare type UsingDeclaration = UsingInForOfDeclaration | UsingInNormalContextDeclaration;
2061
2103
  declare interface UsingDeclarationBase extends BaseNode {
@@ -2155,9 +2197,17 @@ export declare interface WithStatement extends BaseNode {
2155
2197
  body: Statement;
2156
2198
  object: Expression;
2157
2199
  }
2158
- export declare interface YieldExpression extends BaseNode {
2200
+ export declare type YieldExpression = YieldNoStarExpression | YieldStarExpression;
2201
+ declare interface YieldExpressionBase extends BaseNode {
2159
2202
  type: AST_NODE_TYPES.YieldExpression;
2160
2203
  argument: Expression | null;
2161
2204
  delegate: boolean;
2162
2205
  }
2206
+ export declare interface YieldNoStarExpression extends YieldExpressionBase {
2207
+ delegate: false;
2208
+ }
2209
+ export declare interface YieldStarExpression extends YieldExpressionBase {
2210
+ argument: Expression;
2211
+ delegate: true;
2212
+ }
2163
2213
  export {};
@@ -64,5 +64,18 @@ export interface ParserOptions {
64
64
  sourceType?: SourceType | undefined;
65
65
  tokens?: boolean;
66
66
  tsconfigRootDir?: string;
67
+ /**
68
+ * Controls how the parser reacts when run with a TypeScript version that is
69
+ * not officially supported by typescript-eslint.
70
+ * - `'warn'` (default): log a warning to the console.
71
+ * - `'error'`: throw, causing the lint run to fail. Useful in CI to prevent
72
+ * unsupported TypeScript versions from being merged unnoticed.
73
+ * - `'ignore'`: do nothing.
74
+ */
75
+ onUnsupportedTypeScriptVersion?: 'error' | 'ignore' | 'warn';
76
+ /**
77
+ * @deprecated Use {@link onUnsupportedTypeScriptVersion} instead.
78
+ * `true` is equivalent to `'warn'` and `false` is equivalent to `'ignore'`.
79
+ */
67
80
  warnOnUnsupportedTypeScriptVersion?: boolean;
68
81
  }
package/package.json CHANGED
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "name": "@depup/typescript-eslint__types",
3
- "version": "8.58.1-depup.0",
3
+ "version": "8.66.0-depup.0",
4
4
  "description": "Types for the TypeScript-ESTree AST spec (with updated dependencies)",
5
5
  "files": [
6
6
  "dist",
7
- "!*.tsbuildinfo",
8
- "package.json",
9
- "README.md",
10
- "LICENSE",
11
- "changes.json"
7
+ "!**/*.tsbuildinfo",
8
+ "changes.json",
9
+ "README.md"
12
10
  ],
13
11
  "type": "commonjs",
14
12
  "exports": {
@@ -44,6 +42,7 @@
44
42
  "estree"
45
43
  ],
46
44
  "devDependencies": {
45
+ "@typescript/native-preview": "7.0.0-dev.20260518.1",
47
46
  "@vitest/coverage-v8": "^4.0.18",
48
47
  "eslint": "^10.0.0",
49
48
  "rimraf": "^5.0.10",
@@ -67,9 +66,6 @@
67
66
  "build": {
68
67
  "dependsOn": [
69
68
  "copy-ast-spec"
70
- ],
71
- "inputs": [
72
- "{projectRoot}/src/generated/**/*"
73
69
  ]
74
70
  },
75
71
  "copy-ast-spec": {
@@ -91,7 +87,9 @@
91
87
  "typescript-eslint:build",
92
88
  "eslint-plugin-internal:build"
93
89
  ]
94
- }
90
+ },
91
+ "typecheck:tsgo": {},
92
+ "attw-check": {}
95
93
  }
96
94
  },
97
95
  "scripts": {
@@ -102,14 +100,16 @@
102
100
  "generate-lib": "pnpm -w exec nx run scope-manager:generate-lib",
103
101
  "lint": "pnpm -w exec nx lint",
104
102
  "test": "pnpm -w exec nx test",
105
- "typecheck": "pnpm -w exec nx typecheck"
103
+ "typecheck": "pnpm -w exec nx typecheck",
104
+ "typecheck:tsgo": "pnpm -w exec nx typecheck:tsgo",
105
+ "attw-check": "pnpm -w exec nx attw-check"
106
106
  },
107
107
  "depup": {
108
108
  "changes": {},
109
109
  "depsUpdated": 0,
110
110
  "originalPackage": "@typescript-eslint/types",
111
- "originalVersion": "8.58.1",
112
- "processedAt": "2026-04-08T04:54:24.388Z",
111
+ "originalVersion": "8.66.0",
112
+ "processedAt": "2026-08-04T00:39:48.792Z",
113
113
  "smokeTest": "passed"
114
114
  }
115
115
  }