ghcjs-dom-javascript-0.10.0.0: src/GHCJS/DOM/JSFFI/Generated/GPUUncapturedErrorEvent.hs
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ForeignFunctionInterface, JavaScriptFFI #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from webgpu (webref). Do not edit.
module GHCJS.DOM.JSFFI.Generated.GPUUncapturedErrorEvent
(js_newGPUUncapturedErrorEvent, js_getError, newGPUUncapturedErrorEvent, getError, GPUUncapturedErrorEvent(..), gTypeGPUUncapturedErrorEvent)
where
import Prelude ((.), (==), (>>=), (<$>), (++), Bool(..), Maybe(..), IO, Int, Word, Double, Float)
import qualified Prelude as P
import Control.Monad (void)
import GHCJS.Types (JSVal, JSString)
import GHCJS.Foreign (jsUndefined, jsNull)
import GHCJS.DOM.Types
import qualified GHCJS.DOM.Types as Types
import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import GHCJS.DOM.JSFFI.Generated.Enums
foreign import javascript safe "(($1, $2) => { return new globalThis[\"GPUUncapturedErrorEvent\"]($1, $2); })"
js_newGPUUncapturedErrorEvent :: JSString -> GPUUncapturedErrorEventInit -> IO GPUUncapturedErrorEvent
-- | <https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/GPUUncapturedErrorEvent MDN GPUUncapturedErrorEvent. documentation>
newGPUUncapturedErrorEvent :: (MonadDOM m, ToJSString type') => type' -> GPUUncapturedErrorEventInit -> m GPUUncapturedErrorEvent
newGPUUncapturedErrorEvent type' gpuUncapturedErrorEventInitDict = liftDOM ((js_newGPUUncapturedErrorEvent (toJSString type') (gpuUncapturedErrorEventInitDict)))
foreign import javascript unsafe "(($1) => { return $1[\"error\"]; })"
js_getError :: GPUUncapturedErrorEvent -> IO GPUError
-- | <https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error MDN GPUUncapturedErrorEvent.error documentation>
getError :: (MonadDOM m) => GPUUncapturedErrorEvent -> m GPUError
getError self = liftDOM ((js_getError (self)))