Skip to content

Commit 25be4a0

Browse files
committed
Fixed TypeScript imports
1 parent aaab887 commit 25be4a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/setup/typescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install typedrest --save
1515
Create an `EntryEndpoint` pointing at your API:
1616

1717
```typescript
18-
import {EntryEndpoint} from 'typedrest';
18+
import {EntryEndpoint} from 'typedrest.endpoints';
1919

2020
const client = new EntryEndpoint(new URL("https://example.com/api/"));
2121
```
@@ -25,7 +25,7 @@ const client = new EntryEndpoint(new URL("https://example.com/api/"));
2525
Extend `EntryEndpoint` and expose your API's resources as properties:
2626

2727
```typescript
28-
import {EntryEndpoint, CollectionEndpoint} from 'typedrest';
28+
import {EntryEndpoint, CollectionEndpoint} from 'typedrest.endpoints';
2929

3030
class MyClient extends EntryEndpoint {
3131
get contacts() {

0 commit comments

Comments
 (0)