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.
The id of the overlay to resolve and remove
The expected type of the overlay (e.g. 'contextMenu', 'popover', 'modal')
The value to resolve the overlay's promise with
True if the overlay was found and resolved, false if not found
Error if the overlay exists but its type does not match expectedType
expectedType
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.