diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..e5947b9 --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,12 @@ +import {Middleware} from "redux"; +import * as m from 'redux-localstorage-simple'; + +declare module 'redux-localstorage-simple' { + interface RLSOptions { + states?: string[]; + namespace?: string; + debounce?: number; + } + export function save(options?:RLSOptions):Middleware + export function load():object +} \ No newline at end of file diff --git a/package.json b/package.json index 121201a..38e2ce6 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.4.0", "description": "Save and load Redux state to and from LocalStorage. Supports Immutable.js data structures.", "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { "clean": "rimraf dist", "build": "npm run build:dist && npm run build:test",