Skip to content

Commit 9ae68f6

Browse files
committed
document how to use with typescript in app
1 parent 4c70dec commit 9ae68f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ Available imports:
3535
import fetch, { Headers, Request, Response, AbortController } from 'fetch';
3636
```
3737

38+
### Use with TypeScript
39+
To use `ember-fetch` with TypeScript or enable editor's type support, add `"fetch": "ember-cli/ember-fetch"` to your app's `devDependencies`. This will get the current state of `ember-fetch` from this GitHub repo as a dependency.
40+
3841
### Use with Ember Data
3942
To have Ember Data utilize `fetch` instead of jQuery.ajax to make calls to your backend, extend your project's `application` adapter with the `adapter-fetch` mixin.
4043

0 commit comments

Comments
 (0)