This is the latest docs version
Quick Links
  • -Overview
  • -Language Features
  • -JS Interop
  • -Build System
Documentation
Language Manual
Reference for all language features
ReScript & React
First class bindings for ReactJS
GenType
Seamless TypeScript integration
Reanalyze
Dead Code & Termination analysis
Exploration
Packages
Explore third party libraries and bindings
Syntax Lookup
Discover all syntax constructs
APIPlaygroundBlogCommunity
  • Playground
  • Blog
  • Twitter
  • GitHub
  • Forum
Dom Module
Overview
Dom
submodules
  • Storage
  • Storage2
    • t
      t
    • v
      getItem
    • v
      setItem
    • v
      removeItem
    • v
      clear
    • v
      key
    • v
      length
    • v
      localStorage
    • v
      sessionStorage
  • API / Dom / Storage2

    Storage2

    t

    RESCRIPT
    type t

    getItem

    RESCRIPT
    let getItem: (t, string) => option<string>

    setItem

    RESCRIPT
    let setItem: (t, string, string) => unit

    removeItem

    RESCRIPT
    let removeItem: (t, string) => unit

    clear

    RESCRIPT
    let clear: t => unit

    key

    RESCRIPT
    let key: (t, int) => option<string>

    length

    RESCRIPT
    let length: t => int

    localStorage

    RESCRIPT
    let localStorage: t

    sessionStorage

    RESCRIPT
    let sessionStorage: t
    Types and values
    • t
      t
    • v
      getItem
    • v
      setItem
    • v
      removeItem
    • v
      clear
    • v
      key
    • v
      length
    • v
      localStorage
    • v
      sessionStorage

    © 2024 The ReScript Project

    Software and assets distribution powered by KeyCDN.

    About
    • Community
    • ReScript Association
    Find us on