Closed BartusZak closed 1 year ago
add a redux-persist-expire.d.ts
with the code below to the root of your project
declare module 'redux-persist-expire' {
import { createTransform } from 'redux-persist'
interface ConfigType {
persistedAtKey?: string
expireSeconds?: null | number
expiredState?: unknown
autoExpire?: boolean
}
export default function expireReducer(reducerKey: string, config: ConfigType): typeof createTransform
}
Type definitions have been added in the latest version 1.1.1
Hey,
Are there any TypeScript Types for package?