diff --git a/types/rsvp/index.d.ts b/types/rsvp/index.d.ts index 4e9b8edda9..e32ad96363 100755 --- a/types/rsvp/index.d.ts +++ b/types/rsvp/index.d.ts @@ -122,6 +122,8 @@ declare module 'rsvp' { finally(onFinally?: U | PromiseLike): RSVP.Promise; + readonly [Symbol.toStringTag]: "Promise"; + static all( values: [ Arg, diff --git a/types/rsvp/rsvp-tests.ts b/types/rsvp/rsvp-tests.ts index 7805c40fa5..1f14a3318b 100755 --- a/types/rsvp/rsvp-tests.ts +++ b/types/rsvp/rsvp-tests.ts @@ -324,3 +324,7 @@ function testOnAndOff() { ); }); } + +function testAssignableToPromise() { + const promise: Promise = RSVP.resolve(0); +}