@eslint-react/ast 1.24.0-next.9 → 1.24.1-beta.1
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/dist/index.d.mts +7 -6
- package/dist/index.d.ts +7 -6
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -5,17 +5,17 @@ import { SyntaxKind } from 'typescript';
|
|
|
5
5
|
import { AST_NODE_TYPES as AST_NODE_TYPES$1 } from '@typescript-eslint/typescript-estree';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Find the parent node that satisfies the
|
|
8
|
+
* Find the parent node that satisfies the test function
|
|
9
9
|
* @param node The AST node
|
|
10
|
-
* @param
|
|
11
|
-
* @returns The parent node that satisfies the
|
|
10
|
+
* @param test The test function
|
|
11
|
+
* @returns The parent node that satisfies the test function or `_` if not found
|
|
12
12
|
*/
|
|
13
|
-
declare function findParentNode<A extends TSESTree.Node>(node: TSESTree.Node | _,
|
|
13
|
+
declare function findParentNode<A extends TSESTree.Node>(node: TSESTree.Node | _, test: (n: TSESTree.Node) => n is A): A | _;
|
|
14
14
|
/**
|
|
15
|
-
* Find the parent node that satisfies the test function
|
|
15
|
+
* Find the parent node that satisfies the test function or `_` if not found
|
|
16
16
|
* @param node The AST node
|
|
17
17
|
* @param test The test function
|
|
18
|
-
* @returns The parent node that satisfies the test
|
|
18
|
+
* @returns The parent node that satisfies the test function
|
|
19
19
|
*/
|
|
20
20
|
declare function findParentNode(node: TSESTree.Node | _, test: (node: TSESTree.Node) => boolean): TSESTree.Node | _;
|
|
21
21
|
|
|
@@ -1763,6 +1763,7 @@ declare interface TSImportEqualsRequireDeclaration extends TSImportEqualsDeclara
|
|
|
1763
1763
|
declare interface TSImportType extends BaseNode {
|
|
1764
1764
|
type: AST_NODE_TYPES.TSImportType;
|
|
1765
1765
|
argument: TypeNode;
|
|
1766
|
+
attributes: ImportAttribute[];
|
|
1766
1767
|
qualifier: EntityName | null;
|
|
1767
1768
|
typeArguments: TSTypeParameterInstantiation | null;
|
|
1768
1769
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,17 +5,17 @@ import { SyntaxKind } from 'typescript';
|
|
|
5
5
|
import { AST_NODE_TYPES as AST_NODE_TYPES$1 } from '@typescript-eslint/typescript-estree';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Find the parent node that satisfies the
|
|
8
|
+
* Find the parent node that satisfies the test function
|
|
9
9
|
* @param node The AST node
|
|
10
|
-
* @param
|
|
11
|
-
* @returns The parent node that satisfies the
|
|
10
|
+
* @param test The test function
|
|
11
|
+
* @returns The parent node that satisfies the test function or `_` if not found
|
|
12
12
|
*/
|
|
13
|
-
declare function findParentNode<A extends TSESTree.Node>(node: TSESTree.Node | _,
|
|
13
|
+
declare function findParentNode<A extends TSESTree.Node>(node: TSESTree.Node | _, test: (n: TSESTree.Node) => n is A): A | _;
|
|
14
14
|
/**
|
|
15
|
-
* Find the parent node that satisfies the test function
|
|
15
|
+
* Find the parent node that satisfies the test function or `_` if not found
|
|
16
16
|
* @param node The AST node
|
|
17
17
|
* @param test The test function
|
|
18
|
-
* @returns The parent node that satisfies the test
|
|
18
|
+
* @returns The parent node that satisfies the test function
|
|
19
19
|
*/
|
|
20
20
|
declare function findParentNode(node: TSESTree.Node | _, test: (node: TSESTree.Node) => boolean): TSESTree.Node | _;
|
|
21
21
|
|
|
@@ -1763,6 +1763,7 @@ declare interface TSImportEqualsRequireDeclaration extends TSImportEqualsDeclara
|
|
|
1763
1763
|
declare interface TSImportType extends BaseNode {
|
|
1764
1764
|
type: AST_NODE_TYPES.TSImportType;
|
|
1765
1765
|
argument: TypeNode;
|
|
1766
|
+
attributes: ImportAttribute[];
|
|
1766
1767
|
qualifier: EntityName | null;
|
|
1767
1768
|
typeArguments: TSTypeParameterInstantiation | null;
|
|
1768
1769
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/ast",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.1-beta.1",
|
|
4
4
|
"description": "ESLint React's TSESTree AST utility module.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"./package.json"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@typescript-eslint/types": "^8.
|
|
37
|
-
"@typescript-eslint/typescript-estree": "^8.
|
|
38
|
-
"@typescript-eslint/utils": "^8.
|
|
36
|
+
"@typescript-eslint/types": "^8.21.0",
|
|
37
|
+
"@typescript-eslint/typescript-estree": "^8.21.0",
|
|
38
|
+
"@typescript-eslint/utils": "^8.21.0",
|
|
39
39
|
"string-ts": "^2.2.0",
|
|
40
|
-
"ts-pattern": "^5.6.
|
|
41
|
-
"@eslint-react/eff": "1.24.
|
|
40
|
+
"ts-pattern": "^5.6.2",
|
|
41
|
+
"@eslint-react/eff": "1.24.1-beta.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"tsup": "^8.3.5",
|