Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/account-core/src/core/sessionContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ export interface MintHandle {
* (`createWebCrossTabRefreshPort` from `@comfyorg/account-core/web`); tests pass
* fakes.
*/
export interface CrossTabRefreshPort {
export interface CrossTabRefreshPort<Message = AccountCredential> {
/**
* Queue for the key's lease. `onAcquired` fires if and when this tab
* becomes leader; the returned function abandons the request or releases
* held leadership.
*/
requestLeadership: (key: string, onAcquired: () => void) => () => void
publishCredential: (key: string, credential: AccountCredential) => void
publishCredential: (key: string, credential: Message) => void
/** Messages cross a serialization boundary; the client validates them. */
onCredential: (
key: string,
Expand Down
Loading
Loading