Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
napalmpapalam committed Jun 28, 2023
1 parent 7fe2eea commit b5b0297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fetcher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ in scenarios where you require a one-time request and prefers to avoid the overh
import { fetcher } from '@distributedlab/fetcher'

const getData = async () => {
const { data } = fetcher.get<{ name: string }>('https://api.example.com/data')
const { data } = await fetcher.get<{ name: string }>('https://api.example.com/data')
console.log(data) // { name: 'John' }
}
```
Expand Down

0 comments on commit b5b0297

Please sign in to comment.