Skip to content

Commit

Permalink
result should be Partial<DefaultContext>
Browse files Browse the repository at this point in the history
Co-authored-by: Lenz Weber-Tronic <mail@lenzw.de>
  • Loading branch information
henryqdineen and phryneas committed Apr 5, 2024
1 parent 0f37e96 commit a53e479
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/link/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@ export interface Operation {
operationName: string;
extensions: Record<string, any>;
setContext: {
(context: DefaultContext): void;
(updateContext: (previousContext: DefaultContext) => DefaultContext): void;
(context: Partial<DefaultContext>): void;
(
updateContext: (
previousContext: DefaultContext
) => Partial<DefaultContext>
): void;
};
getContext: () => DefaultContext;
}
Expand Down

0 comments on commit a53e479

Please sign in to comment.