"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Option_1 = require("fp-ts/lib/Option");
var _clear = function () { return localStorage.clear(); };
/**
 * @since 0.2.0
 */
exports.clear = _clear;
/**
 * @since 0.2.0
 */
function getItem(key) {
    return function () { return Option_1.fromNullable(localStorage.getItem(key)); };
}
exports.getItem = getItem;
/**
 * @since 0.2.0
 */
function key(index) {
    return function () { return Option_1.fromNullable(localStorage.key(index)); };
}
exports.key = key;
var _length = function () { return localStorage.length; };
/**
 * @since 0.2.0
 */
exports.length = _length;
/**
 * @since 0.2.0
 */
function removeItem(key) {
    return function () { return localStorage.removeItem(key); };
}
exports.removeItem = removeItem;
/**
 * @since 0.2.0
 */
function setItem(key, value) {
    return function () { return localStorage.setItem(key, value); };
}
exports.setItem = setItem;
