Skip to content

Commit

Permalink
docs(readme): fix typo in custom fetch implementation (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored and stainless-app[bot] committed Feb 29, 2024
1 parent 7e5b298 commit 28042ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ import { fetch } from 'undici'; // as one example
import ModernTreasury from 'modern-treasury';

const client = new ModernTreasury({
fetch: async (url: RequestInfo, init?: RequestInfo): Promise<Response> => {
fetch: async (url: RequestInfo, init?: RequestInit): Promise<Response> => {
console.log('About to make a request', url, init);
const response = await fetch(url, init);
console.log('Got response', response);
Expand Down

0 comments on commit 28042ee

Please sign in to comment.