@umbraco-cms/backoffice

    Function isCancelablePromise

    • Checks if the given promise is cancelable, i.e. if it has a cancel method.

      Type Parameters

      • T

      Parameters

      • promise: unknown

        The promise to check

      Returns promise is Promise<T> & { cancel: () => void }

      True if the promise is cancelable, false otherwise

    MMNEPVFCICPMFPCPTTAAATR