Merge pull request #19308 from screendriver/redux-storage-engine-jsurl

Added redux-storage-engine-jsurl declaration to redux-storage
This commit is contained in:
Nathan Shively-Sanders
2017-09-05 16:21:03 -07:00
committed by GitHub
5 changed files with 38 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
// Type definitions for redux-storage-engine-jsurl 1.0
// Project: https://github.com/axe312ger/redux-storage-engine-jsurl
// Definitions by: Christian Rackerseder <https://github.com/screendriver>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { StorageEngine } from 'redux-storage';
export default function createEngine(): StorageEngine;

View File

@@ -0,0 +1,6 @@
import { createLoader } from "redux-storage";
import createUrlEngine from "redux-storage-engine-jsurl";
const urlStorageEngine = createUrlEngine();
createLoader(urlStorageEngine);

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"redux-storage-engine-jsurl-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }

View File

@@ -3,4 +3,4 @@
"dependencies": {
"redux": "^3.6.0"
}
}
}