Skip to content

Commit

Permalink
[BUGFIX tsc] ts:precompile needs RSVP Promise not native promise to b…
Browse files Browse the repository at this point in the history
…e documented
  • Loading branch information
runspired committed Feb 22, 2019
1 parent ea0f5ca commit 44fa7b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addon/-private/system/references/record.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { resolve } from 'rsvp';
import RSVP, { resolve } from 'rsvp';
import Reference from './reference';

/**
Expand Down Expand Up @@ -81,9 +81,9 @@ export default class RecordReference extends Reference {
@method push
@param objectOrPromise {Promise|Object}
@return Promise<record> a promise for the value (record or relationship)
@return RSVP.Promise<record> a promise for the value (record or relationship)
*/
push(objectOrPromise) {
push(objectOrPromise): RSVP.Promise<object> {
return resolve(objectOrPromise).then(data => {
return this.store.push(data);
});
Expand Down

0 comments on commit 44fa7b6

Please sign in to comment.