mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-23 14:46:40 +09:00
fix(misskey-js): WebSocketの型定義をReconnectingWebsocketに依存するように (misskey-dev#14850)
Cherry-picked from ec4358d1e8c9a59a0702d19182c37d91510b3736 Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
This commit is contained in:
parent
1328420f99
commit
7cc8c2a22b
@ -5,6 +5,7 @@
|
||||
```ts
|
||||
|
||||
import { EventEmitter } from 'eventemitter3';
|
||||
import _ReconnectingWebsocket from 'reconnecting-websocket';
|
||||
|
||||
// Warning: (ae-forgotten-export) The symbol "components" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
@ -3008,7 +3009,7 @@ export class Stream extends EventEmitter<StreamEvents> {
|
||||
constructor(origin: string, user: {
|
||||
token: string;
|
||||
} | null, options?: {
|
||||
WebSocket?: any;
|
||||
WebSocket?: _ReconnectingWebsocket.Options['WebSocket'];
|
||||
});
|
||||
// (undocumented)
|
||||
close(): void;
|
||||
|
@ -34,7 +34,7 @@ export default class Stream extends EventEmitter<StreamEvents> {
|
||||
private idCounter = 0;
|
||||
|
||||
constructor(origin: string, user: { token: string; } | null, options?: {
|
||||
WebSocket?: any;
|
||||
WebSocket?: _ReconnectingWebsocket.Options['WebSocket'];
|
||||
}) {
|
||||
super();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user