@typescript-eslint/typescript-estree 8.53.2-alpha.7 → 8.53.2-alpha.9

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.
@@ -23,7 +23,11 @@ function createParserServices(astMaps, program) {
23
23
  experimentalDecorators: compilerOptions.experimentalDecorators ?? false,
24
24
  isolatedDeclarations: compilerOptions.isolatedDeclarations ?? false,
25
25
  ...astMaps,
26
+ getContextualType: node => checker.getContextualType(astMaps.esTreeNodeToTSNodeMap.get(node)),
27
+ getResolvedSignature: node => checker.getResolvedSignature(astMaps.esTreeNodeToTSNodeMap.get(node)),
26
28
  getSymbolAtLocation: node => checker.getSymbolAtLocation(astMaps.esTreeNodeToTSNodeMap.get(node)),
27
29
  getTypeAtLocation: node => checker.getTypeAtLocation(astMaps.esTreeNodeToTSNodeMap.get(node)),
30
+ getTypeFromTypeNode: node => checker.getTypeFromTypeNode(astMaps.esTreeNodeToTSNodeMap.get(node)),
31
+ getTypeOfSymbolAtLocation: (symbol, node) => checker.getTypeOfSymbolAtLocation(symbol, astMaps.esTreeNodeToTSNodeMap.get(node)),
28
32
  };
29
33
  }
@@ -197,6 +197,10 @@ export interface ParserServicesNodeMaps {
197
197
  export interface ParserServicesWithTypeInformation extends ParserServicesNodeMaps, ParserServicesBase {
198
198
  getSymbolAtLocation: (node: TSESTree.Node) => ts.Symbol | undefined;
199
199
  getTypeAtLocation: (node: TSESTree.Node) => ts.Type;
200
+ getContextualType: (node: TSESTree.Expression) => ts.Type | undefined;
201
+ getResolvedSignature: (node: TSESTree.CallExpression | TSESTree.NewExpression) => ts.Signature | undefined;
202
+ getTypeFromTypeNode: (node: TSESTree.TypeNode) => ts.Type;
203
+ getTypeOfSymbolAtLocation: (symbol: ts.Symbol, node: TSESTree.Node) => ts.Type;
200
204
  program: ts.Program;
201
205
  }
202
206
  export interface ParserServicesWithoutTypeInformation extends ParserServicesNodeMaps, ParserServicesBase {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/typescript-estree",
3
- "version": "8.53.2-alpha.7",
3
+ "version": "8.53.2-alpha.9",
4
4
  "description": "A parser that converts TypeScript source code into an ESTree compatible form",
5
5
  "files": [
6
6
  "dist",
@@ -52,10 +52,10 @@
52
52
  "typecheck": "yarn run -BT nx typecheck"
53
53
  },
54
54
  "dependencies": {
55
- "@typescript-eslint/project-service": "8.53.2-alpha.7",
56
- "@typescript-eslint/tsconfig-utils": "8.53.2-alpha.7",
57
- "@typescript-eslint/types": "8.53.2-alpha.7",
58
- "@typescript-eslint/visitor-keys": "8.53.2-alpha.7",
55
+ "@typescript-eslint/project-service": "8.53.2-alpha.9",
56
+ "@typescript-eslint/tsconfig-utils": "8.53.2-alpha.9",
57
+ "@typescript-eslint/types": "8.53.2-alpha.9",
58
+ "@typescript-eslint/visitor-keys": "8.53.2-alpha.9",
59
59
  "debug": "^4.4.3",
60
60
  "minimatch": "^9.0.5",
61
61
  "semver": "^7.7.3",