Compare commits

...

1 Commits

Author SHA1 Message Date
pera
8906b1fc1a
Create index.d.ts 2019-08-12 13:56:34 -03:00

23
index.d.ts vendored Normal file
View File

@ -0,0 +1,23 @@
declare module 'react-native-secure-key-store' {
export const ACCESSIBLE = {
AFTER_FIRST_UNLOCK: 'AccessibleAfterFirstUnlock',
AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY:
'AccessibleAfterFirstUnlockThisDeviceOnly',
ALWAYS: 'AccessibleAlways',
ALWAYS_THIS_DEVICE_ONLY: 'AccessibleAlwaysThisDeviceOnly',
WHEN_PASSCODE_SET_THIS_DEVICE_ONLY:
'AccessibleWhenPasscodeSetThisDeviceOnly',
WHEN_UNLOCKED: 'AccessibleWhenUnlocked',
WHEN_UNLOCKED_THIS_DEVICE_ONLY: 'AccessibleWhenUnlockedThisDeviceOnly',
}
interface RNSecureKeyStore {
get: (key: string) => Promise<any>
set: (key: string, value: string, accessible?: ACCESSIBLE) => Promise<any>
remove: (key: string) => Promise<any>
setResetOnAppUninstallTo: (enabled: boolean) => boolean
}
const secureKeystore: RNSecureKeyStore
export default secureKeystore
}