Cretezy / redux-persist-expo-securestore

redux-persist storage for Expo's SecureStore
MIT License
74 stars 28 forks source link

Types for `getItem` and `setItem` are flipped #24

Open Jackman3005 opened 2 years ago

Jackman3005 commented 2 years ago

The types for ReduxPersistExpoSecureStore functions getItem and setItem appear to be flipped and causes type errors when I want to work with the storage solution directly.

See current typings:

export interface ReduxPersistExpoSecureStore {
  getItem(key: string, value: string): Promise<void>;

  setItem(key: string): Promise<string | null>;

  removeItem(key: string): Promise<void>;
}