Interface JQueryGenericPromise

Allows jQuery Promises to interop with non-jQuery promises

Index

Methods

Methods

public then(doneFilter: (value: T) => U, failFilter?: (reason: any) => U): JQueryGenericPromise

Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.

Parameters

  • doneFilter: (value: T) => U

    A function that is called when the Deferred is resolved.

  • failFilter?: (reason: any) => U optional

    An optional function that is called when the Deferred is rejected.

Returns

JQueryGenericPromise

public then(doneFilter: (value: T) => JQueryGenericPromise<U>, failFilter?: (reason: any) => U): JQueryGenericPromise

Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.

Parameters

  • doneFilter: (value: T) => JQueryGenericPromise<U>

    A function that is called when the Deferred is resolved.

  • failFilter?: (reason: any) => U optional

    An optional function that is called when the Deferred is rejected.

Returns

JQueryGenericPromise

public then(doneFilter: (value: T) => U, failFilter?: (reason: any) => JQueryGenericPromise<U>): JQueryGenericPromise

Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.

Parameters

  • doneFilter: (value: T) => U

    A function that is called when the Deferred is resolved.

  • failFilter?: (reason: any) => JQueryGenericPromise<U> optional

    An optional function that is called when the Deferred is rejected.

Returns

JQueryGenericPromise

public then(doneFilter: (value: T) => JQueryGenericPromise<U>, failFilter?: (reason: any) => JQueryGenericPromise<U>): JQueryGenericPromise

Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.

Parameters

  • doneFilter: (value: T) => JQueryGenericPromise<U>

    A function that is called when the Deferred is resolved.

  • failFilter?: (reason: any) => JQueryGenericPromise<U> optional

    An optional function that is called when the Deferred is rejected.

Returns

JQueryGenericPromise