crowbartools / firebot-custom-scripts-types

TypeScript types for Firebot's Custom Scripts
6 stars 11 forks source link

Export additional top-level types #24

Closed pirak closed 1 year ago

pirak commented 1 year ago

The additional types are needed when implementing custom scripts as a class that implements Firebot.CustomScript.

pirak commented 1 year ago

Thanks. I use the class form. Then the explicit annotation of the return type of getDefaultParameters() and getScriptManifest() threw either Typescript and/or linter errors (I don’t remember now) as they are not exported from here and therefore cannot be imported. Maybe there would have been another solution for that? I’m not that familiar with JS/TS.