Skip to content

Commit

Permalink
(types): fix constant types for ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rt2zz committed Jul 5, 2019
1 parent 0e5862b commit 9ed3b77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions types/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
declare module "redux-persist/es/types" {
import { StoreEnhancer } from "redux";
import { REGISTER, REHYDRATE } from 'redux-persist/es/constants';

interface PersistState {
version: number;
Expand Down Expand Up @@ -102,7 +101,7 @@ declare module "redux-persist/es/types" {
type RehydrateErrorType = any;

interface RehydrateAction {
type: typeof REHYDRATE;
type: 'persist/REHYDRATE';
key: string;
payload?: object | null;
err?: RehydrateErrorType | null;
Expand All @@ -114,7 +113,7 @@ declare module "redux-persist/es/types" {
}

interface RegisterAction {
type: typeof REGISTER;
type: 'persist/REGISTER';
key: string;
}

Expand Down

0 comments on commit 9ed3b77

Please sign in to comment.