init component
This commit is contained in:
29
node_modules/fp-ts-local-storage/es6/index.d.ts
generated
vendored
Normal file
29
node_modules/fp-ts-local-storage/es6/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* @since 0.2.0
|
||||
*/
|
||||
import { IO } from 'fp-ts/es6/IO';
|
||||
import { Option } from 'fp-ts/es6/Option';
|
||||
/**
|
||||
* @since 0.2.0
|
||||
*/
|
||||
export declare const clear: IO<void>;
|
||||
/**
|
||||
* @since 0.2.0
|
||||
*/
|
||||
export declare function getItem(key: string): IO<Option<string>>;
|
||||
/**
|
||||
* @since 0.2.0
|
||||
*/
|
||||
export declare function key(index: number): IO<Option<string>>;
|
||||
/**
|
||||
* @since 0.2.0
|
||||
*/
|
||||
export declare const length: IO<number>;
|
||||
/**
|
||||
* @since 0.2.0
|
||||
*/
|
||||
export declare function removeItem(key: string): IO<void>;
|
||||
/**
|
||||
* @since 0.2.0
|
||||
*/
|
||||
export declare function setItem(key: string, value: string): IO<void>;
|
||||
35
node_modules/fp-ts-local-storage/es6/index.js
generated
vendored
Normal file
35
node_modules/fp-ts-local-storage/es6/index.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import { fromNullable } from 'fp-ts/es6/Option';
|
||||
var _clear = function () { return localStorage.clear(); };
|
||||
/**
|
||||
* @since 0.2.0
|
||||
*/
|
||||
export var clear = _clear;
|
||||
/**
|
||||
* @since 0.2.0
|
||||
*/
|
||||
export function getItem(key) {
|
||||
return function () { return fromNullable(localStorage.getItem(key)); };
|
||||
}
|
||||
/**
|
||||
* @since 0.2.0
|
||||
*/
|
||||
export function key(index) {
|
||||
return function () { return fromNullable(localStorage.key(index)); };
|
||||
}
|
||||
var _length = function () { return localStorage.length; };
|
||||
/**
|
||||
* @since 0.2.0
|
||||
*/
|
||||
export var length = _length;
|
||||
/**
|
||||
* @since 0.2.0
|
||||
*/
|
||||
export function removeItem(key) {
|
||||
return function () { return localStorage.removeItem(key); };
|
||||
}
|
||||
/**
|
||||
* @since 0.2.0
|
||||
*/
|
||||
export function setItem(key, value) {
|
||||
return function () { return localStorage.setItem(key, value); };
|
||||
}
|
||||
Reference in New Issue
Block a user