TransitionPromise | @uirouter/core
Options
Menu

Interface TransitionPromise

Hierarchy

Index

Properties

Promise: PromiseConstructor
[Symbol.toStringTag]: string
transition: Transition

Methods

  • catch<TResult>(onrejected?: function | undefined | null): Promise<StateObject | TResult>
  • Attaches a callback for only the rejection of the Promise.

  • Attaches a callback for only the rejection of the Promise.

    Type parameters

    • TResult

    Parameters

    • onrejected: Optional  function | undefined | null
      :

      The callback to execute when the Promise is rejected.

    Returns Promise<StateObject | TResult>

    :

    A Promise for the completion of the callback.


  • finally(onfinally?: function | undefined | null): Promise<StateObject>
  • Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.

  • Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.

    Parameters

    • onfinally: Optional  function | undefined | null
      :

      The callback to execute when the Promise is settled (fulfilled or rejected).

    Returns Promise<StateObject>

    :

    A Promise for the completion of the callback.


  • then<TResult1, TResult2>(onfulfilled?: function | undefined | null, onrejected?: function | undefined | null): Promise<TResult1 | TResult2>
  • Attaches callbacks for the resolution and/or rejection of the Promise.

  • Attaches callbacks for the resolution and/or rejection of the Promise.

    Type parameters

    • TResult1

    • TResult2

    Parameters

    • onfulfilled: Optional  function | undefined | null
      :

      The callback to execute when the Promise is resolved.

    • onrejected: Optional  function | undefined | null
      :

      The callback to execute when the Promise is rejected.

    Returns Promise<TResult1 | TResult2>

    :

    A Promise for the completion of which ever callback is executed.


Generated using TypeDoc