diff --git a/README.md b/README.md index 0d2aa368..3c1d521a 100644 --- a/README.md +++ b/README.md @@ -219,8 +219,8 @@ import { fetch } from 'undici'; // as one example import Orb from 'orb-billing'; const client = new Orb({ - fetch: (url: RequestInfo, init?: RequestInfo): Response => { - console.log('About to make request', url, init); + fetch: async (url: RequestInfo, init?: RequestInfo): Promise => { + console.log('About to make a request', url, init); const response = await fetch(url, init); console.log('Got response', response); return response;