@@ -23,35 +23,19 @@ export enum RNSensitiveInfoAttrAccessibleOptions {
2323}
2424
2525export interface RNSensitiveInfoOptions {
26- kSecAccessControl : RNSensitiveInfoAccessControlOptions ;
27- kSecAttrAccessible : RNSensitiveInfoAttrAccessibleOptions ;
28- keychainService : string ;
29- kSecUseOperationPrompt : string ;
30- sharedPreferencesName : string ;
31- touchID : boolean ;
26+ kSecAccessControl ? : RNSensitiveInfoAccessControlOptions ;
27+ kSecAttrAccessible ? : RNSensitiveInfoAttrAccessibleOptions ;
28+ keychainService ? : string ;
29+ kSecUseOperationPrompt ? : string ;
30+ sharedPreferencesName ? : string ;
31+ touchID ? : boolean ;
3232}
3333
34- declare class RNSensitiveInfo {
35- setItem (
36- key : string ,
37- value : string ,
38- options : RNSensitiveInfoOptions ,
39- ) : Promise < null > ;
40-
41- getItem ( key : string , options : RNSensitiveInfoOptions ) : Promise < string > ;
42-
43- getAllItems ( options : RNSensitiveInfoOptions ) : Promise < Object > ;
44-
45- deleteItem ( key : string , options : RNSensitiveInfoOptions ) : Promise < null > ;
46-
47- isSensorAvailable ( ) : Promise < RNSensitiveInfoBiometryType | boolean > ;
48-
49- isHardwareDetected ( ) : Promise < boolean > ;
50-
51- hasEnrolledFingerprints ( ) : Promise < boolean > ;
52-
53- cancelFingerprintAuth ( ) : void ;
54- }
55-
56- declare const rnSensitiveInfo : RNSensitiveInfo ;
57- export default rnSensitiveInfo ;
34+ export declare function setItem ( key : string , value : string , options : RNSensitiveInfoOptions ) : Promise < null > ;
35+ export declare function getItem ( key : string , options : RNSensitiveInfoOptions ) : Promise < string > ;
36+ export declare function getAllItems ( options : RNSensitiveInfoOptions ) : Promise < Object > ;
37+ export declare function deleteItem ( key : string , options : RNSensitiveInfoOptions ) : Promise < null > ;
38+ export declare function isSensorAvailable ( ) : Promise < RNSensitiveInfoBiometryType | boolean > ;
39+ export declare function isHardwareDetected ( ) : Promise < boolean > ;
40+ export declare function hasEnrolledFingerprints ( ) : Promise < boolean > ;
41+ export declare function cancelFingerprintAuth ( ) : void ;
0 commit comments