Skip to content

Commit

Permalink
declaration files must use declare (closes #152, #148)
Browse files Browse the repository at this point in the history
  • Loading branch information
mildsunrise authored Sep 8, 2020
1 parent f63171a commit 4f963ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Writable, WritableOptions } from 'stream';

namespace Speaker {
declare namespace Speaker {
interface Options extends WritableOptions {
readonly channels?: number;
readonly bitDepth?: number;
Expand All @@ -25,7 +25,7 @@ namespace Speaker {
*
* @param opts options.
*/
class Speaker extends Writable {
declare class Speaker extends Writable {
constructor(opts?: Speaker.Options);

/**
Expand Down

0 comments on commit 4f963ec

Please sign in to comment.