@eslint-react/ast 1.24.0-next.13 → 1.24.0-next.15
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 +6 -6
- package/dist/index.d.ts +6 -6
- package/package.json +2 -2
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
|
|
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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/ast",
|
|
3
|
-
"version": "1.24.0-next.
|
|
3
|
+
"version": "1.24.0-next.15",
|
|
4
4
|
"description": "ESLint React's TSESTree AST utility module.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@typescript-eslint/utils": "^8.20.0",
|
|
39
39
|
"string-ts": "^2.2.0",
|
|
40
40
|
"ts-pattern": "^5.6.0",
|
|
41
|
-
"@eslint-react/eff": "1.24.0-next.
|
|
41
|
+
"@eslint-react/eff": "1.24.0-next.15"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"tsup": "^8.3.5",
|