Skip to content

Commit

Permalink
fix(blue-api-sdk): extends typename store value
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Jul 29, 2024
1 parent 84c89d9 commit 6f4a1a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/blue-api-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@morpho-org/blue-api-sdk",
"version": "1.1.1",
"version": "1.1.2",
"author": "Morpho Association <[email protected]>",
"main": "src/index.ts",
"files": [
Expand Down
5 changes: 4 additions & 1 deletion packages/blue-api-sdk/src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ type ReadFieldFunction = <T, K extends keyof T = keyof T>(
from: T,
) => T[K];

type MergeObjectsFunction = <T>(existing: T, incoming: T) => T;
type MergeObjectsFunction = <T extends { __typename?: string }>(
existing: T,
incoming: T,
) => T;

export const readMaybeBigInt = (value: string | number | undefined | null) => {
if (value == null) return value;
Expand Down

0 comments on commit 6f4a1a7

Please sign in to comment.