Skip to content

Commit

Permalink
docs(readme): update typescrip example
Browse files Browse the repository at this point in the history
  • Loading branch information
ivandotv committed Feb 1, 2021
1 parent b718e68 commit 4c8f727
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ Server:
import nodeFetch from 'node-fetch'
import { RadioBrowserApi } from 'radio-browser-api'

const fetchImpl = (nodeFetch as unknown) as typeof fetch
const api = new RadioBrowserApi(globalTest.fetch, 'My Radio App')
const api = new RadioBrowserApi(
(nodeFetch as unknown) as typeof fetch,
'My Radio App'
)
```

Browser:
Expand Down

0 comments on commit 4c8f727

Please sign in to comment.