-- | <https://developer.mozilla.org/en-US/docs/Web/API/StorageErrorCallback Mozilla StorageErrorCallback documentation> 
newStorageErrorCallback ::
                        (MonadIO m) =>
                          (Maybe DOMException -> IO ()) -> m StorageErrorCallback
newStorageErrorCallback callback
  = liftIO
      (StorageErrorCallback <$>
         syncCallback1 ThrowWouldBlock
           (\ error ->
              fromJSValUnchecked error >>= \ error' -> callback error'))
newStorageErrorCallback ::
                        (MonadIO m) =>
                          (Maybe DOMException -> IO ()) -> m StorageErrorCallback
newStorageErrorCallback callback
  = liftIO
      (StorageErrorCallback <$>
         syncCallback1 ThrowWouldBlock
           (\ error ->
              fromJSValUnchecked error >>= \ error' -> callback error'))
newStorageErrorCallback callback
  = liftIO
      (StorageErrorCallback <$>
         syncCallback1 ThrowWouldBlock
           (\ error ->
              fromJSValUnchecked error >>= \ error' -> callback error'))