Skip to content

Commit d90402d

Browse files
committed
Update README.md
1 parent 3eba370 commit d90402d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ devup API feels like using `fetch`, but with superpowers:
3535
import { devupApi } from "devup-api";
3636

3737
// create api instance
38-
const api = await devupApi("https://api.example.com");
38+
const api = devupApi("https://api.example.com");
3939
```
4040

4141
### **2. Call endpoints — types are automatic**

packages/core/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ npm install @devup-api/core
1111
## Usage
1212

1313
```typescript
14-
import { devupApiCore } from '@devup-api/core';
14+
import { devupApi } from '@devup-api/core';
1515

16-
const core = new devupApiCore({
17-
// options
18-
});
16+
const core = devupApi("https://example.com");
1917
```
2018

0 commit comments

Comments
 (0)