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