diff --git a/native_client/javascript/index.d.ts b/native_client/javascript/index.d.ts index 50564a02..fe9ab459 100644 --- a/native_client/javascript/index.d.ts +++ b/native_client/javascript/index.d.ts @@ -23,13 +23,6 @@ export interface Metadata { transcripts: CandidateTranscript[]; } -/** - * @class - * Provides an interface to a DeepSpeech stream. The constructor cannot be called - * directly, use :js:func:`Model.createStream`. - */ -export class Stream {} - /** * An object providing an interface to a trained DeepSpeech model. * @@ -120,7 +113,14 @@ sttWithMetadata(aBuffer: object, aNumResults: number): Metadata; * @throws on error */ createStream(): object; +} +/** + * @class + * Provides an interface to a DeepSpeech stream. The constructor cannot be called + * directly, use :js:func:`Model.createStream`. + */ +declare class Stream { /** * Feed audio samples to an ongoing streaming inference. *