Skip to content

Commit

Permalink
fix(misskey-js): WebSocketの型定義をReconnectingWebsocketに依存するように (misskey…
Browse files Browse the repository at this point in the history
…-dev#14850)

Cherry-picked from ec4358d

Co-authored-by: かっこかり <[email protected]>
  • Loading branch information
u1-liquid and kakkokari-gtyih committed Nov 6, 2024
1 parent 1328420 commit 7cc8c2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/misskey-js/etc/misskey-js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/misskey-js/src/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 7cc8c2a

Please sign in to comment.