Remove unnecessary definitions for redux-persist-transform-compress, update other redux-persist plugins

This commit is contained in:
Karol Janyst
2017-02-16 09:15:46 +09:00
parent 05031f52cf
commit 9f74a96b56
8 changed files with 8 additions and 53 deletions
+6
View File
@@ -299,6 +299,12 @@
"typingsPackageName": "redux-persist",
"sourceRepoURL": "https://github.com/rt2zz/redux-persist",
"asOfVersion": "4.3.1"
},
{
"libraryName": "redux-persist-transform-compress",
"typingsPackageName": "redux-persist-transform-compress",
"sourceRepoURL": "https://github.com/rt2zz/redux-persist-transform-compress",
"asOfVersion": "4.2.0"
}
]
}
-9
View File
@@ -1,9 +0,0 @@
// Type definitions for redux-persist-transform-compress 4.1
// Project: https://github.com/rt2zz/redux-persist-transform-compress
// Definitions by: Karol Janyst <https://github.com/LKay>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { PersistorConfig, Transform } from "redux-persist";
export = createCompressor;
declare function createCompressor<State, Raw>(config?: PersistorConfig): Transform<State, Raw>;
@@ -1,6 +0,0 @@
{
"dependencies": {
"redux": "^3.6.0",
"redux-persist": "^4.3.1"
}
}
@@ -1,11 +0,0 @@
import { createStore, Reducer, Store } from "redux"
import { createPersistor, Transform } from "redux-persist"
import createCompressor = require("redux-persist-transform-compress")
const reducer: Reducer<any> = (state: any, action: any) => ({ state, action })
const compressor: Transform<any, any> = createCompressor({ whitelist : ["foo"] })
const store: Store<any> = createStore(reducer)
createPersistor(store, { transforms : [compressor] })
@@ -1,22 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"redux-persist-transform-compress-tests.ts"
]
}
@@ -1,3 +0,0 @@
{
"extends": "../tslint.json"
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"dependencies": {
"redux": "^3.6.0",
"redux-persist": "^4.3.1"
"redux-persist": "^4.4.0"
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"dependencies": {
"redux": "^3.6.0",
"redux-persist": "^4.3.1"
"redux-persist": "^4.4.0"
}
}