What is the IntlayerNode type?
The IntlayerNode<T> type is a special type provided by intlayer's packages such as next-intlayer, react-intlayer, vue-intlayer, preact-intlayer, solid-intlayer, angular-intlayer, svelte-intlayer, lit-intlayer and vanilla-intlayer.
Example of usage
src/app.content.tsx
Copy code
Copy the code to the clipboard
import { t, type Dictionary } from "intlayer";
import type { ComponentChildren } from "preact";
const appContent = {
key: "app",
content: {
title: "Vite + Preact",
},
} satisfies Dictionary;
export default appContent;src/App.tsx
Copy code
Copy the code to the clipboard
Why Intlayer insert an IntlayerNode?
Intlayer insert an IntlayerNode to be able to render the visual editor Selectors in the context of the CMS / Visual Editor.

An IntlayerNode is an enriched React/Vue/Preact/Solid/Angular/Svelte/Lit/Vanilla Node, but also to access the properties of the base primitive node.
For instance:
js
Copy code
Copy the code to the clipboard
Accessing the properties of an IntlayerNode will work, but will break the ability to display the selectors in the Visual Editor.
The IntlayerNode can also wrap and number, or other types such as IntlayerNode<number>