AngularTS
    Preparing search index...

    Interface AnimationHandle

    interface AnimationHandle {
        controller: AbortController;
        finished: Promise<undefined>;
        cancel(): void;
        catch<TResult = never>(
            onrejected?:
                | ((reason: unknown) => TResult | PromiseLike<TResult>)
                | null,
        ): Promise<TResult | undefined>;
        complete(status?: boolean): void;
        done(callback: (ok: boolean) => void): void;
        finally(onfinally?: (() => void) | null): Promise<undefined>;
        finish(): void;
        pause(): void;
        play(): void;
        then<TResult1 = undefined, TResult2 = never>(
            onfulfilled?:
                | ((value: undefined) => TResult1 | PromiseLike<TResult1>)
                | null,
            onrejected?:
                | ((reason: unknown) => TResult2 | PromiseLike<TResult2>)
                | null,
        ): PromiseLike<TResult1 | TResult2>;
    }

    Implements

    • PromiseLike<undefined>
    Index

    Properties

    controller: AbortController
    finished: Promise<undefined>

    Methods

    • Returns void

    • Type Parameters

      • TResult = never

      Parameters

      • Optionalonrejected: ((reason: unknown) => TResult | PromiseLike<TResult>) | null

      Returns Promise<TResult | undefined>

    • Parameters

      • status: boolean = true

      Returns void

    • Parameters

      • callback: (ok: boolean) => void

      Returns void

    • Parameters

      • Optionalonfinally: (() => void) | null

      Returns Promise<undefined>

    • Returns void

    • Returns void

    • Returns void

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

      Type Parameters

      • TResult1 = undefined
      • TResult2 = never

      Parameters

      • Optionalonfulfilled: ((value: undefined) => TResult1 | PromiseLike<TResult1>) | null

        The callback to execute when the Promise is resolved.

      • Optionalonrejected: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null

        The callback to execute when the Promise is rejected.

      Returns PromiseLike<TResult1 | TResult2>

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