@vuedx/template-ast-types
Advanced tools
Comparing version 0.3.1-insiders-1609155664.0 to 0.4.0
{ | ||
"name": "@vuedx/template-ast-types", | ||
"version": "0.3.1-insiders-1609155664.0", | ||
"version": "0.4.0", | ||
"description": "Helper functions for Vue template AST", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
@@ -46,2 +46,24 @@ <div align="center" style="text-align: center; margin-bottom: 72px"> | ||
<a href="#-vuedx-template-ast-types-findParentNode-function-1-" id="-vuedx-template-ast-types-findParentNode-function-1-"></a> | ||
### [findParentNode](#-vuedx-template-ast-types-findParentNode-function-1-) | ||
Find the parent element node. | ||
<details> | ||
<summary>More info</summary> | ||
**Signature:** | ||
```ts | ||
declare function findParentNode(ast: RootNode, node: Node): ElementNode | undefined; | ||
``` | ||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| ast | <code><a href="#-vue-compiler-core-RootNode-interface">RootNode</a></code> | - | | ||
| node | <code><a href="#-vue-compiler-core--Node-2-interface">Node</a></code> | - | | ||
</details> | ||
<br> | ||
<a href="#-vuedx-template-ast-types-findTemplateChildNodeAt-function-1-" id="-vuedx-template-ast-types-findTemplateChildNodeAt-function-1-"></a> | ||
@@ -48,0 +70,0 @@ |
125131
601