@eslint-react/var 3.0.0-next.20 → 3.0.0-next.23

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/package.json +5 -5
package/dist/index.d.ts CHANGED
@@ -43,14 +43,14 @@ declare function findImportSource(name: string, initialScope: Scope): string | u
43
43
  * @param at The index of the variable definition to get the initializer from
44
44
  * @returns The initializer expression or statement of the variable definition at the specified index, or unit if not found
45
45
  */
46
- declare function getVariableInitializer(variable: Variable | unit, at: number): unit | TSESTree.ClassDeclaration | TSESTree.ClassDeclarationWithName | TSESTree.ClassDeclarationWithOptionalName | TSESTree.Expression | TSESTree.FunctionDeclaration | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName;
46
+ declare function getVariableInitializer(variable: Variable | unit, at: number): unit | TSESTree.ClassDeclaration | TSESTree.Expression | TSESTree.FunctionDeclaration;
47
47
  /**
48
48
  * Get the initializer expression or statement of a variable definition at a specified index, or the function declaration if the variable is a parameter of a function
49
49
  * @param variable The variable to get the initializer from
50
50
  * @param at The index of the variable definition to get the initializer from
51
51
  * @returns The initializer expression or statement of the variable definition at the specified index, or the function declaration if the variable is a parameter of a function, or unit if not found
52
52
  */
53
- declare function getVariableInitializerLoose(variable: Variable | unit, at: number): unit | TSESTree.ClassDeclaration | TSESTree.ClassDeclarationWithName | TSESTree.ClassDeclarationWithOptionalName | TSESTree.Expression | TSESTree.FunctionDeclaration | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName;
53
+ declare function getVariableInitializerLoose(variable: Variable | unit, at: number): unit | TSESTree.ClassDeclaration | TSESTree.Expression | TSESTree.FunctionDeclaration;
54
54
  //#endregion
55
55
  //#region src/scope.d.ts
56
56
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/var",
3
- "version": "3.0.0-next.20",
3
+ "version": "3.0.0-next.23",
4
4
  "description": "ESLint React's TSESTree AST utility module for static analysis of variables.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -34,9 +34,9 @@
34
34
  "@typescript-eslint/types": "canary",
35
35
  "@typescript-eslint/utils": "canary",
36
36
  "ts-pattern": "^5.9.0",
37
- "@eslint-react/ast": "3.0.0-next.20",
38
- "@eslint-react/eff": "3.0.0-next.20",
39
- "@eslint-react/shared": "3.0.0-next.20"
37
+ "@eslint-react/ast": "3.0.0-next.23",
38
+ "@eslint-react/eff": "3.0.0-next.23",
39
+ "@eslint-react/shared": "3.0.0-next.23"
40
40
  },
41
41
  "devDependencies": {
42
42
  "tsdown": "^0.20.3",
@@ -52,6 +52,6 @@
52
52
  "scripts": {
53
53
  "build": "tsdown --dts-resolve",
54
54
  "lint:publish": "publint",
55
- "lint:ts": "tsc --noEmit"
55
+ "lint:ts": "tsl"
56
56
  }
57
57
  }