Merge pull request #964 from AlexanderLindsay/next
Fix definition of MithrilPromise
This commit is contained in:
commit
1a473ee63e
1 changed files with 2 additions and 2 deletions
4
mithril.d.ts
vendored
4
mithril.d.ts
vendored
|
|
@ -658,7 +658,7 @@ declare module _mithril {
|
|||
*
|
||||
* @see m.prop which returns objects that implement this interface.
|
||||
*/
|
||||
interface MithrilPromiseProperty<T> extends MithrilPromise<T>,
|
||||
interface MithrilPromiseProperty<T> extends MithrilPromise<T | MithrilPromise<T>>,
|
||||
MithrilProperty<MithrilPromise<T>> {
|
||||
/**
|
||||
* Gets the contained promise.
|
||||
|
|
@ -747,7 +747,7 @@ declare module _mithril {
|
|||
/**
|
||||
* This represents a Mithril promise object.
|
||||
*/
|
||||
interface MithrilPromise<T> extends Thennable<T>, MithrilProperty<MithrilPromise<T>> {
|
||||
interface MithrilPromise<T> extends Thennable<T>, MithrilProperty<T | MithrilPromise<T>> {
|
||||
/**
|
||||
* Chain this promise with a simple success callback, propogating
|
||||
* rejections.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue