papi-dts
    Preparing search index...
    • Resolves an overlay's promise with the given result and removes it from the store. Returns true if the overlay was found and settled, false if not found.

      Type Parameters

      Parameters

      • id: string

        The id of the overlay to resolve and remove

      • expectedType: T

        The expected type of the overlay (e.g. 'contextMenu', 'popover', 'modal')

      • result: OverlayResolveType[T]

        The value to resolve the overlay's promise with

      Returns boolean

      True if the overlay was found and resolved, false if not found

      Error if the overlay exists but its type does not match expectedType