Update TypeScript definitions (#60)

This commit is contained in:
Mark Dawson 2017-03-17 12:59:35 -07:00 committed by Joel Arvidsson
parent e5af53bbc8
commit 0e350a9bfe
2 changed files with 7 additions and 2 deletions

View File

@ -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"

View File

@ -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>;