Skip to content

Commit

Permalink
Fix payload types for after load/unload document hooks (ueberdosis#710)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Haines <[email protected]>
  • Loading branch information
haines authored Oct 1, 2023
1 parent f0e0367 commit 223cb05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/server/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 42,7 @@ export interface Extension {
connected?(data: connectedPayload): Promise<any>;
onAuthenticate?(data: onAuthenticatePayload): Promise<any>;
onLoadDocument?(data: onLoadDocumentPayload): Promise<any>;
afterLoadDocument?(data: onLoadDocumentPayload): Promise<any>;
afterLoadDocument?(data: afterLoadDocumentPayload): Promise<any>;
beforeHandleMessage?(data: beforeHandleMessagePayload): Promise<any>;
beforeBroadcastStateless?(data: beforeBroadcastStatelessPayload): Promise<any>;
onStateless?(payload: onStatelessPayload): Promise<any>;
Expand All @@ -52,7 52,7 @@ export interface Extension {
onAwarenessUpdate?(data: onAwarenessUpdatePayload): Promise<any>;
onRequest?(data: onRequestPayload): Promise<any>;
onDisconnect?(data: onDisconnectPayload): Promise<any>;
afterUnloadDocument?(data: onLoadDocumentPayload): Promise<any>;
afterUnloadDocument?(data: afterUnloadDocumentPayload): Promise<any>;
onDestroy?(data: onDestroyPayload): Promise<any>;
}

Expand Down Expand Up @@ -85,7 85,7 @@ export type HookPayloadByName = {
connected: connectedPayload,
onAuthenticate: onAuthenticatePayload,
onLoadDocument: onLoadDocumentPayload,
afterLoadDocument: onLoadDocumentPayload,
afterLoadDocument: afterLoadDocumentPayload,
beforeHandleMessage: beforeHandleMessagePayload,
beforeBroadcastStateless: beforeBroadcastStatelessPayload,
onStateless: onStatelessPayload,
Expand Down

0 comments on commit 223cb05

Please sign in to comment.