Interface JQueryPromise

Interface for the JQuery promise, part of callbacks

Hierarchy

Index

Methods

Methods

public always(alwaysCallbacks1?: JQueryPromiseCallback, alwaysCallbacks2?: JQueryPromiseCallback[]): JQueryDeferred

Add handlers to be called when the Deferred object is either resolved or rejected.

Parameters

  • alwaysCallbacks1?: JQueryPromiseCallback optional

    A function, or array of functions, that is called when the Deferred is resolved or rejected.

  • alwaysCallbacks2?: JQueryPromiseCallback[] optional

    Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.

Returns

JQueryDeferred

public always(alwaysCallbacks?: Array<any>): JQueryPromise

Add handlers to be called when the Deferred object is either resolved or rejected.

Parameters

  • alwaysCallbacks?: Array<any> optional

    A function, or array of functions, that is called when the Deferred is resolved or rejected.

Returns

JQueryPromise

public done(doneCallbacks1?: JQueryPromiseCallback, doneCallbacks2?: JQueryPromiseCallback[]): JQueryDeferred

Add handlers to be called when the Deferred object is resolved.

Parameters

  • doneCallbacks1?: JQueryPromiseCallback optional

    A function, or array of functions, that are called when the Deferred is resolved.

  • doneCallbacks2?: JQueryPromiseCallback[] optional

    Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.

Returns

JQueryDeferred

public done(doneCallbacks?: Array<any>): JQueryPromise

Add handlers to be called when the Deferred object is resolved.

Parameters

  • doneCallbacks?: Array<any> optional

    A function, or array of functions, that are called when the Deferred is resolved.

Returns

JQueryPromise

public fail(failCallbacks1?: JQueryPromiseCallback, failCallbacks2?: JQueryPromiseCallback[]): JQueryDeferred

Add handlers to be called when the Deferred object is rejected.

Parameters

  • failCallbacks1?: JQueryPromiseCallback optional

    A function, or array of functions, that are called when the Deferred is rejected.

  • failCallbacks2?: JQueryPromiseCallback[] optional

    Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.

Returns

JQueryDeferred

public fail(failCallbacks?: Array<any>): JQueryPromise

Add handlers to be called when the Deferred object is rejected.

Parameters

  • failCallbacks?: Array<any> optional

    A function, or array of functions, that are called when the Deferred is rejected.

Returns

JQueryPromise

public pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise

Parameters

  • doneFilter?: (x: any) => any optional
  • failFilter?: (x: any) => any optional
  • progressFilter?: (x: any) => any optional

Returns

JQueryPromise

public progress(progressCallbacks?: JQueryPromiseCallback[]): JQueryDeferred

Add handlers to be called when the Deferred object generates progress notifications.

Parameters

  • progressCallbacks?: JQueryPromiseCallback[] optional

    A function, or array of functions, to be called when the Deferred generates progress notifications.

Returns

JQueryDeferred

public progress(progressCallbacks?: Array<any>): JQueryPromise

Add handlers to be called when the Deferred object generates progress notifications.

Parameters

  • progressCallbacks?: Array<any> optional

    A function, or array of functions, to be called when the Deferred generates progress notifications.

Returns

JQueryPromise

public then(doneFilter: (value: T) => U, failFilter?: (...reasons: any[]) => U, progressFilter?: (...progression: any[]) => any): JQueryPromise

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?: (...reasons: any[]) => U optional

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

  • progressFilter?: (...progression: any[]) => any optional

    An optional function that is called when progress notifications are sent to the Deferred.

Returns

JQueryPromise

public then(doneFilter: (value: T) => JQueryGenericPromise<U>, failFilter?: (...reasons: any[]) => U, progressFilter?: (...progression: any[]) => any): JQueryPromise

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?: (...reasons: any[]) => U optional

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

  • progressFilter?: (...progression: any[]) => any optional

    An optional function that is called when progress notifications are sent to the Deferred.

Returns

JQueryPromise

public then(doneFilter: (value: T) => U, failFilter?: (...reasons: any[]) => JQueryGenericPromise<U>, progressFilter?: (...progression: any[]) => any): JQueryPromise

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?: (...reasons: any[]) => JQueryGenericPromise<U> optional

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

  • progressFilter?: (...progression: any[]) => any optional

    An optional function that is called when progress notifications are sent to the Deferred.

Returns

JQueryPromise

public then(doneFilter: (value: T) => JQueryGenericPromise<U>, failFilter?: (...reasons: any[]) => JQueryGenericPromise<U>, progressFilter?: (...progression: any[]) => any): JQueryPromise

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?: (...reasons: any[]) => JQueryGenericPromise<U> optional

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

  • progressFilter?: (...progression: any[]) => any optional

    An optional function that is called when progress notifications are sent to the Deferred.

Returns

JQueryPromise

public then(doneFilter: (...values: any[]) => U, failFilter?: (...reasons: any[]) => U, progressFilter?: (...progression: any[]) => any): JQueryPromise

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

Parameters

  • doneFilter: (...values: any[]) => U

    A function that is called when the Deferred is resolved.

  • failFilter?: (...reasons: any[]) => U optional

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

  • progressFilter?: (...progression: any[]) => any optional

    An optional function that is called when progress notifications are sent to the Deferred.

Returns

JQueryPromise

public then(doneFilter: (...values: any[]) => JQueryGenericPromise<U>, failFilter?: (...reasons: any[]) => U, progressFilter?: (...progression: any[]) => any): JQueryPromise

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

Parameters

  • doneFilter: (...values: any[]) => JQueryGenericPromise<U>

    A function that is called when the Deferred is resolved.

  • failFilter?: (...reasons: any[]) => U optional

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

  • progressFilter?: (...progression: any[]) => any optional

    An optional function that is called when progress notifications are sent to the Deferred.

Returns

JQueryPromise

public then(doneFilter: (...values: any[]) => U, failFilter?: (...reasons: any[]) => JQueryGenericPromise<U>, progressFilter?: (...progression: any[]) => any): JQueryPromise

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

Parameters

  • doneFilter: (...values: any[]) => U

    A function that is called when the Deferred is resolved.

  • failFilter?: (...reasons: any[]) => JQueryGenericPromise<U> optional

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

  • progressFilter?: (...progression: any[]) => any optional

    An optional function that is called when progress notifications are sent to the Deferred.

Returns

JQueryPromise

public then(doneFilter: (...values: any[]) => JQueryGenericPromise<U>, failFilter?: (...reasons: any[]) => JQueryGenericPromise<U>, progressFilter?: (...progression: any[]) => any): JQueryPromise

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

Parameters

  • doneFilter: (...values: any[]) => JQueryGenericPromise<U>

    A function that is called when the Deferred is resolved.

  • failFilter?: (...reasons: any[]) => JQueryGenericPromise<U> optional

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

  • progressFilter?: (...progression: any[]) => any optional

    An optional function that is called when progress notifications are sent to the Deferred.

Returns

JQueryPromise