Type definitions for all Element PAPI provided by the Lynx team, used to improve Element PAPI support in your framework.
npm install @lynx-js/type-element-api@lynx-js/type-element-api is a type package of all Element API officially provided by the Lynx team. Using this package can help you better use Element API to develop your framework.
``json`
"peerDependencies": {
"@lynx-js/type-element-api": "latest"
}
`json`
"devDependencies": {
"@lynx-js/type-element-api": "latest"
}
After installing the dependencies, you can use them directly, for example:
`typescript``
let pid = 10;
let viewRef = __CreateView(10);