Update TypeScript definitions (#60)
This commit is contained in:
parent
e5af53bbc8
commit
0e350a9bfe
|
@ -27,6 +27,7 @@
|
|||
"typescript": {
|
||||
"definition": "typings/react-native-keychain.d.ts"
|
||||
},
|
||||
"types": "typings/react-native-keychain.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/oblador/react-native-keychain.git"
|
||||
|
|
|
@ -29,11 +29,15 @@ declare module 'react-native-keychain' {
|
|||
username: string,
|
||||
password: string,
|
||||
service?: string
|
||||
): Promise<void>;
|
||||
): Promise<boolean>;
|
||||
|
||||
function getGenericPassword(
|
||||
service?: string
|
||||
): Promise<void>;
|
||||
): Promise<boolean | {service: string, username: string, password: string}>;
|
||||
|
||||
function resetGenericPassword(
|
||||
service?: string
|
||||
): Promise<boolean>
|
||||
|
||||
function requestSharedWebCredentials (
|
||||
): Promise<SharedWebCredentials>;
|
||||
|
|
Loading…
Reference in New Issue