Skip to content

Commit aedb1b9

Browse files
Merge pull request #80 from davidgovea/enum-typefix
Fix type definition
2 parents c331182 + e681d0a commit aedb1b9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

index.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
declare module 'react-native-secure-key-store' {
2-
export const ACCESSIBLE = {
3-
AFTER_FIRST_UNLOCK: 'AccessibleAfterFirstUnlock',
4-
AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY:
2+
export enum ACCESSIBLE {
3+
AFTER_FIRST_UNLOCK = 'AccessibleAfterFirstUnlock',
4+
AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY =
55
'AccessibleAfterFirstUnlockThisDeviceOnly',
6-
ALWAYS: 'AccessibleAlways',
7-
ALWAYS_THIS_DEVICE_ONLY: 'AccessibleAlwaysThisDeviceOnly',
8-
WHEN_PASSCODE_SET_THIS_DEVICE_ONLY:
6+
ALWAYS = 'AccessibleAlways',
7+
ALWAYS_THIS_DEVICE_ONLY = 'AccessibleAlwaysThisDeviceOnly',
8+
WHEN_PASSCODE_SET_THIS_DEVICE_ONLY =
99
'AccessibleWhenPasscodeSetThisDeviceOnly',
10-
WHEN_UNLOCKED: 'AccessibleWhenUnlocked',
11-
WHEN_UNLOCKED_THIS_DEVICE_ONLY: 'AccessibleWhenUnlockedThisDeviceOnly',
10+
WHEN_UNLOCKED = 'AccessibleWhenUnlocked',
11+
WHEN_UNLOCKED_THIS_DEVICE_ONLY = 'AccessibleWhenUnlockedThisDeviceOnly',
1212
}
1313

1414
interface RNSecureKeyStore {
1515
get: (key: string) => Promise<any>
16-
set: (key: string, value: string, accessible?: ACCESSIBLE) => Promise<any>
16+
set: (key: string, value: string, options?: { accessible?: ACCESSIBLE }) => Promise<any>
1717
remove: (key: string) => Promise<any>
1818
setResetOnAppUninstallTo: (enabled: boolean) => boolean
1919
}

0 commit comments

Comments
 (0)