addVirtualImports
addVirtualImports
allows you to create virtual modules and share data from your integration. For example:
You can now access the config somewhere else, for example inside a page injected by your integration:
Typing your virtual module
In order to get the types for your virtual modules while developing your integration, you’ll need to manually declare a virtual module.
First create a virtual.d.ts
file in your integration root. Then you can define your virtual modules as global TypeScript modules: