Skip to content

Commit 7bc6341

Browse files
MasterOdindpopp07
authored andcommitted
chore: add missing @types/websocket (#992)
1 parent 26139c3 commit 7bc6341

4 files changed

Lines changed: 11 additions & 16 deletions

File tree

lib/recognize-stream.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,12 +456,12 @@ class RecognizeStream extends Duplex {
456456
this.socket._client.response.headers
457457
) {
458458
resolve(
459-
this.socket._client.response.headers['x-global-transaction-id']
459+
(this.socket._client.response.headers['x-global-transaction-id'] as string)
460460
);
461461
} else {
462462
this.on('open', () =>
463463
resolve(
464-
this.socket._client.response.headers['x-global-transaction-id']
464+
(this.socket._client.response.headers['x-global-transaction-id'] as string)
465465
)
466466
);
467467
this.on('error', reject);

lib/synthesize-stream.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ import { w3cwebsocket as w3cWebSocket } from 'websocket';
2121
import { SynthesizeWebSocketParams } from '../text-to-speech/v1';
2222
import { processUserParameters } from './websocket-utils';
2323

24-
25-
interface SynthesizeStream extends Readable {
26-
_readableState;
27-
}
28-
2924
/**
3025
* pipe()-able Node.js Readable stream - accepts text in the constructor and emits binary audio data in its 'message' events
3126
*

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@
7979
},
8080
"dependencies": {
8181
"@types/async": "^2.4.2",
82-
"@types/csv-stringify": "^1.4.3",
8382
"@types/extend": "^3.0.1",
8483
"@types/isstream": "^0.1.0",
8584
"@types/node": "^11.9.4",
85+
"@types/websocket": "^1.0.0",
8686
"async": "^2.6.2",
8787
"axios": "^0.18.0",
8888
"camelcase": "^5.3.1",

0 commit comments

Comments
 (0)