Skip to content

Commit

Permalink
Merge pull request #18 from Turbo87/rsvp-promise
Browse files Browse the repository at this point in the history
Support "import { Promise } from 'rsvp';"
  • Loading branch information
rwjblue authored Jul 8, 2017
2 parents 4b917f4 + e06dbcc commit 9169532
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ JSON data for [RFC #176](https://github.com/emberjs/rfcs/blob/master/text/0176-j
| `Ember.Observable` | `import Observable from "@ember/object/observable"` |
| `Ember.PromiseProxyMixin` | `import PromiseProxyMixin from "@ember/object/promise-proxy-mixin"` |
| `Ember.RSVP` | `import RSVP from "rsvp"` |
| `Ember.RSVP.Promise` | `import { Promise } from "rsvp"` |
| `Ember.Resolver` | `import Resolver from "@ember/application/resolver"` |
| `Ember.Route` | `import Route from "@ember/routing/route"` |
| `Ember.Router` | `import Router from "@ember/routing/router"` |
Expand Down Expand Up @@ -404,9 +405,10 @@ JSON data for [RFC #176](https://github.com/emberjs/rfcs/blob/master/text/0176-j
| `import $ from "jquery"` | `Ember.$` |

#### `rsvp`
| Module | Global |
| --- | --- |
| `import RSVP from "rsvp"` | `Ember.RSVP` |
| Module | Global |
| --- | --- |
| `import RSVP from "rsvp"` | `Ember.RSVP` |
| `import { Promise } from "rsvp"` | `Ember.RSVP.Promise` |


### Scripts
Expand Down
3 changes: 2 additions & 1 deletion globals.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,6 @@
"typeOf": ["@ember/utils", "typeOf"],
"compare": ["@ember/utils", "compare"],
"$": ["jquery"],
"RSVP": ["rsvp"]
"RSVP": ["rsvp"],
"RSVP.Promise": ["rsvp", "Promise"]
}

0 comments on commit 9169532

Please sign in to comment.