Skip to content

Commit

Permalink
Merge pull request #53 from kodadot/fix/return-type
Browse files Browse the repository at this point in the history
🐛 🏷️ fetch should return { data: T }
  • Loading branch information
vikiival authored Oct 10, 2024
2 parents 9cd0753 + 9a0f14e commit fea47c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type QueryOptions = {
orderBy?: OrderBy | OrderBy[]
}

export type GraphLike<T> = { data: T } | T
export type GraphLike<T> = { data: T }

// NOW: client.eventListByNftId('123', ['id', 'name'], { limit: 10 })
// NEW: client.eventListByNftId('123', { fields: ['id', 'name'], limit: 10 })
Expand Down

0 comments on commit fea47c2

Please sign in to comment.