mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Remove unnecessary definitions for redux-persist-transform-compress, update other redux-persist plugins
This commit is contained in:
@@ -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
@@ -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,6 +1,6 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"redux": "^3.6.0",
|
||||
"redux-persist": "^4.3.1"
|
||||
"redux-persist": "^4.4.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"redux": "^3.6.0",
|
||||
"redux-persist": "^4.3.1"
|
||||
"redux-persist": "^4.4.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user