TooTallNate / node-speaker

Output PCM audio data to the speakers
655 stars 147 forks source link

Updated definitions to resolve the TS1046 error. #148

Open mat-sz opened 4 years ago

mat-sz commented 4 years ago

Not sure if this is a result of recent TypeScript changes, since I've never used node-speaker with TypeScript before, but I'm getting this error message. I can confirm that my changes resolve that error and the library functions correctly.

node_modules/speaker/index.d.ts:3:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.

3 namespace Speaker {
  ~~~~~~~~~
MasterOdin commented 4 years ago

Can confirm this fixes the issue of using this library with latest versions of Typescript.