Closed brandongregoryscott closed 2 years ago
// globals.d.ts declare module "opus-media-recorder" { export interface OpusMediaRecorderWorkerOptions { OggOpusEncoderWasmPath: string; WebMOpusEncoderWasmPath: string; encoderWorkerFactory: () => Worker; } }
The error is reported on line 3 (export interface OpusMediaRecorderWorkerOptions), however, the fix moves the export outside of the module declaration, which isn't accurate:
export interface OpusMediaRecorderWorkerOptions
// globals.d.ts declare module "opus-media-recorder" { interface OpusMediaRecorderWorkerOptions { OggOpusEncoderWasmPath: string; WebMOpusEncoderWasmPath: string; encoderWorkerFactory: () => Worker; } } export { OpusMediaRecorderWorkerOptions };
It should be:
// globals.d.ts declare module "opus-media-recorder" { interface OpusMediaRecorderWorkerOptions { OggOpusEncoderWasmPath: string; WebMOpusEncoderWasmPath: string; encoderWorkerFactory: () => Worker; } export { OpusMediaRecorderWorkerOptions }; }
The error is reported on line 3 (
export interface OpusMediaRecorderWorkerOptions
), however, the fix moves the export outside of the module declaration, which isn't accurate:It should be: