mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Merge pull request #22545 from tansongyang/rsvp-tostringtag
rsvp: Add [Symbol.toStringTag]
This commit is contained in:
2
types/rsvp/index.d.ts
vendored
2
types/rsvp/index.d.ts
vendored
@@ -122,6 +122,8 @@ declare module 'rsvp' {
|
||||
|
||||
finally<U>(onFinally?: U | PromiseLike<U>): RSVP.Promise<T>;
|
||||
|
||||
readonly [Symbol.toStringTag]: "Promise";
|
||||
|
||||
static all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(
|
||||
values: [
|
||||
Arg<T1>,
|
||||
|
||||
@@ -324,3 +324,7 @@ function testOnAndOff() {
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
function testAssignableToPromise() {
|
||||
const promise: Promise<number> = RSVP.resolve(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user