@eslint-react/ast 2.8.1 → 2.8.2-next.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/dist/index.d.ts CHANGED
@@ -68,8 +68,8 @@ declare function getNestedReturnStatements(node: TSESTree.Node): readonly TSESTr
68
68
  /**
69
69
  * Get all nested expressions of type T in an expression like node
70
70
  * @param type The type of the expression to retrieve within the node
71
- * @returns A partially applied function bound to a predicate of type T. The returned function can be called passing a
72
- * node, and it will return an array of all nested expressions of type T.
71
+ * @returns A partially applied function bound to a predicate of type AST. The returned function can be called passing a
72
+ * node, and it will return an array of all nested expressions of type AST.
73
73
  */
74
74
  declare function getNestedExpressionsOfType<TNodeType extends AST_NODE_TYPES>(type: TNodeType): (node: TSESTree.Node) => Extract<TSESTree.Node, {
75
75
  type: TNodeType;
@@ -113,7 +113,7 @@ type FunctionID = ReturnType<typeof getFunctionId>;
113
113
  */
114
114
  type FunctionInitPath = readonly [TSESTree.FunctionDeclaration] | readonly [TSESTree.VariableDeclaration, TSESTree.VariableDeclarator, TSESTreeFunction] | readonly [TSESTree.VariableDeclaration, TSESTree.VariableDeclarator, TSESTree.CallExpression, TSESTreeFunction] | readonly [TSESTree.VariableDeclaration, TSESTree.VariableDeclarator, TSESTree.CallExpression, TSESTree.CallExpression, TSESTreeFunction] | readonly [TSESTree.VariableDeclaration, TSESTree.VariableDeclarator, TSESTree.ObjectExpression, TSESTree.Property, TSESTreeFunction] | readonly [TSESTree.VariableDeclaration, TSESTree.VariableDeclarator, TSESTree.ObjectExpression, TSESTree.Property, TSESTree.CallExpression, TSESTreeFunction] | readonly [TSESTree.VariableDeclaration, TSESTree.VariableDeclarator, TSESTree.ObjectExpression, TSESTree.Property, TSESTree.CallExpression, TSESTree.CallExpression, TSESTreeFunction] | readonly [TSESTree.ClassDeclaration, TSESTree.ClassBody, TSESTree.MethodDefinition, TSESTreeFunction] | readonly [TSESTree.ClassDeclaration, TSESTree.ClassBody, TSESTree.PropertyDefinition, TSESTreeFunction];
115
115
  /**
116
- * Identifies the initialization path of a function node in the AST.
116
+ * Identifies the initialization path of a function node in the ast.
117
117
  * Determine what kind of component declaration pattern the function belongs to.
118
118
  *
119
119
  * @param node The function node to analyze
package/dist/index.js CHANGED
@@ -251,8 +251,8 @@ function getNestedReturnStatements(node) {
251
251
  /**
252
252
  * Get all nested expressions of type T in an expression like node
253
253
  * @param type The type of the expression to retrieve within the node
254
- * @returns A partially applied function bound to a predicate of type T. The returned function can be called passing a
255
- * node, and it will return an array of all nested expressions of type T.
254
+ * @returns A partially applied function bound to a predicate of type AST. The returned function can be called passing a
255
+ * node, and it will return an array of all nested expressions of type AST.
256
256
  */
257
257
  function getNestedExpressionsOfType(type) {
258
258
  const isNodeOfType = is(type);
@@ -406,7 +406,7 @@ function getFunctionId(node) {
406
406
  //#endregion
407
407
  //#region src/function-init-path.ts
408
408
  /**
409
- * Identifies the initialization path of a function node in the AST.
409
+ * Identifies the initialization path of a function node in the ast.
410
410
  * Determine what kind of component declaration pattern the function belongs to.
411
411
  *
412
412
  * @param node The function node to analyze
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/ast",
3
- "version": "2.8.1",
3
+ "version": "2.8.2-next.0",
4
4
  "description": "ESLint React's TSESTree AST utility module.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -34,7 +34,7 @@
34
34
  "@typescript-eslint/typescript-estree": "^8.54.0",
35
35
  "@typescript-eslint/utils": "^8.54.0",
36
36
  "string-ts": "^2.3.1",
37
- "@eslint-react/eff": "2.8.1"
37
+ "@eslint-react/eff": "2.8.2-next.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "tsdown": "^0.20.1",