Skip to content

Commit

Permalink
chore: add TODO to widen fetch type
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed May 10, 2021
1 parent 5f2c580 commit f8dcee9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/__testutils__/createClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export const createTestClient = (
const repositoryName = crypto.createHash('md5').update(t.title).digest('hex')
const endpoint = `https://${repositoryName}.cdn.prismic.io/api/v2`
const resolvedOptions: prismic.ClientConfig = {
// TODO: Need to figure out how to widen the type of fetch to ensure users
// can provide their own fetch functio nwithout type issues.
// @ts-expect-error - The types for Fetch and node-fetch do not match
fetch,
...options,
}
Expand Down

0 comments on commit f8dcee9

Please sign in to comment.