---
jsApi: true
title: "[F] getParentTemplateNode"

---
```ts
getParentTemplateNode(node): Node & TemplateDeclarationNode | undefined
```

Lookup and find the node

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `node` | [`Node`](Type.Node.md) | Node |

## Returns

[`Node`](Type.Node.md) & [`TemplateDeclarationNode`](Interface.TemplateDeclarationNode.md) \| `undefined`

Template Parent node if applicable
