Skip to content

Commit

Permalink
document how to use with typescript in app
Browse files Browse the repository at this point in the history
  • Loading branch information
xg-wang committed Jan 28, 2019
1 parent 4c70dec commit 9ae68f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ Available imports:
import fetch, { Headers, Request, Response, AbortController } from 'fetch';
```

### Use with TypeScript
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.

### Use with Ember Data
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.

Expand Down

0 comments on commit 9ae68f6

Please sign in to comment.