mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Streaming: Fix incorrect type definitions (#30977)
This commit is contained in:
parent
2ea9336b68
commit
d436696f46
1 changed files with 3 additions and 3 deletions
|
@ -1107,7 +1107,7 @@ const startServer = async () => {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {http.IncomingMessage} req
|
* @param {http.IncomingMessage} req
|
||||||
* @param {WebSocket} ws
|
* @param {import('ws').WebSocket} ws
|
||||||
* @param {string[]} streamName
|
* @param {string[]} streamName
|
||||||
* @returns {function(string, string): void}
|
* @returns {function(string, string): void}
|
||||||
*/
|
*/
|
||||||
|
@ -1324,7 +1324,7 @@ const startServer = async () => {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef WebSocketSession
|
* @typedef WebSocketSession
|
||||||
* @property {WebSocket & { isAlive: boolean}} websocket
|
* @property {import('ws').WebSocket & { isAlive: boolean}} websocket
|
||||||
* @property {http.IncomingMessage & ResolvedAccount} request
|
* @property {http.IncomingMessage & ResolvedAccount} request
|
||||||
* @property {import('pino').Logger} logger
|
* @property {import('pino').Logger} logger
|
||||||
* @property {Object.<string, { channelName: string, listener: SubscriptionListener, stopHeartbeat: function(): void }>} subscriptions
|
* @property {Object.<string, { channelName: string, listener: SubscriptionListener, stopHeartbeat: function(): void }>} subscriptions
|
||||||
|
@ -1450,7 +1450,7 @@ const startServer = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {WebSocket & { isAlive: boolean }} ws
|
* @param {import('ws').WebSocket & { isAlive: boolean }} ws
|
||||||
* @param {http.IncomingMessage & ResolvedAccount} req
|
* @param {http.IncomingMessage & ResolvedAccount} req
|
||||||
* @param {import('pino').Logger} log
|
* @param {import('pino').Logger} log
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue