ccrma / webchuck

ChucK on the Web
https://chuck.stanford.edu/webchuck
MIT License
42 stars 8 forks source link

Better TypeScript returns type for promises #22

Closed terryzfeng closed 12 months ago

terryzfeng commented 12 months ago

Returns for getInt, getString, .etc functions are now typed properly (Promise<number>, Promise<string>) instead of just Promise<unknown>

terryzfeng commented 12 months ago

also streamline the loadFile function