Added definition for redux-storage-engine-reactnativeasyncstorage (it has the same interface as redux-storage-localstorage).

This commit is contained in:
Jan Kalfus
2016-08-05 20:04:59 +02:00
parent e659470271
commit 90cd5050a5
+12
View File
@@ -96,6 +96,18 @@ declare module "redux-storage-engine-localstorage" {
export default function createEngine(key: string): LocalStorageEngine;
}
declare module "redux-storage-engine-reactnativeasyncstorage" {
import { StorageEngine } from "redux-storage";
export interface ReactNativeAsyncStorageEngine extends StorageEngine {}
/**
* Create React Native Async Storage
* @param key React Native Async Storage key
*/
export default function createEngine(key: string): ReactNativeAsyncStorageEngine;
}
declare module "redux-storage-merger-immutablejs" {
import { StateMerger } from "redux-storage";