ts-nodecg
Type your bundle with bundle specific definition like replicants and messages.
This library replaces the type definition in NodeCG core (nodecg/types/{browser,server}.d.ts
).
If you use this library, don't use the type definition in NodeCG core.
Install
npm i -D ts-nodecg# or yarn add -D ts-nodecg
TypeScript 3.5 or newer is recommended
Usage
First, define your bundle's replicant and messages.
; ;
For server-side (extension)
; ; ;
For client-side (dashboard/graphics)
Define the global nodecg
/NodeCG
variables somewhere in the project.
; declare global
Exposing your bundle's definition
Coming Soon™
License
MIT © Keiichiro Amemiya