packages feed

jsaddle-dom-0.10.0.0: src/JSDOM/Generated/IDBRecord.hs

{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from IndexedDB-3 (webref). Do not edit.
module JSDOM.Generated.IDBRecord
       (getKey, getPrimaryKey, getValue, IDBRecord(..), gTypeIDBRecord)
       where
import Prelude ((.), (==), (>>=), (<$>), (++), Bool(..), Maybe(..), IO, Int, Word, Double, Float)
import qualified Prelude as P
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import Language.Javascript.JSaddle (JSM, JSVal, JSString, toJSVal, valToBool, valToNumber, js, jss, jsf, jsg, new, function, asyncFunction, jsUndefined, jsNull)
import JSDOM.Types
import qualified JSDOM.Types as Types
import JSDOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import JSDOM.Generated.Enums

-- | <https://w3c.github.io/IndexedDB/#dom-idbrecord-key IDBRecord.key specification>
getKey :: (MonadDOM m) => IDBRecord -> m JSVal
getKey self = liftDOM (self ^. js "key")

-- | <https://w3c.github.io/IndexedDB/#dom-idbrecord-primarykey IDBRecord.primaryKey specification>
getPrimaryKey :: (MonadDOM m) => IDBRecord -> m JSVal
getPrimaryKey self = liftDOM (self ^. js "primaryKey")

-- | <https://w3c.github.io/IndexedDB/#dom-idbrecord-value IDBRecord.value specification>
getValue :: (MonadDOM m) => IDBRecord -> m JSVal
getValue self = liftDOM (self ^. js "value")