WebCola
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface for the JQuery promise, part of callbacks

see

https://api.jquery.com/category/deferred-object/

Type parameters

  • T

Hierarchy

Index

Methods

always

done

fail

pipe

  • pipe(doneFilter?: function, failFilter?: function, progressFilter?: function): JQueryPromise<any>
  • Parameters

    • Optional doneFilter: function
        • (x: any): any
        • Parameters

          • x: any

          Returns any

    • Optional failFilter: function
        • (x: any): any
        • Parameters

          • x: any

          Returns any

    • Optional progressFilter: function
        • (x: any): any
        • Parameters

          • x: any

          Returns any

    Returns JQueryPromise<any>

progress

promise

state

  • state(): string

then

  • then<U>(doneFilter: function, failFilter?: function, progressFilter?: function): JQueryPromise<U>
  • then(doneFilter: function, failFilter?: function, progressFilter?: function): JQueryPromise<void>
  • Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.

    see

    https://api.jquery.com/deferred.then/#deferred-then-doneFilter-failFilter-progressFilter

    Type parameters

    • U

    Parameters

    • doneFilter: function

      A function that is called when the Deferred is resolved.

        • Parameters

          • Optional value: T
          • Rest ...values: any[]

          Returns U | JQueryPromise<U>

    • Optional failFilter: function

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

        • (...reasons: any[]): any
        • Parameters

          • Rest ...reasons: any[]

          Returns any

    • Optional progressFilter: function
        • (...progression: any[]): any
        • Parameters

          • Rest ...progression: any[]

          Returns any

    Returns JQueryPromise<U>

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

    see

    https://api.jquery.com/deferred.then/#deferred-then-doneFilter-failFilter-progressFilter

    Parameters

    • doneFilter: function

      A function that is called when the Deferred is resolved.

        • (value?: T, ...values: any[]): void
        • Parameters

          • Optional value: T
          • Rest ...values: any[]

          Returns void

    • Optional failFilter: function

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

        • (...reasons: any[]): any
        • Parameters

          • Rest ...reasons: any[]

          Returns any

    • Optional progressFilter: function
        • (...progression: any[]): any
        • Parameters

          • Rest ...progression: any[]

          Returns any

    Returns JQueryPromise<void>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc