diff --git a/package.json b/package.json index e1d7470..195bbf5 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/typings/react-native-keychain.d.ts b/typings/react-native-keychain.d.ts index ce6ec3e..28cf122 100644 --- a/typings/react-native-keychain.d.ts +++ b/typings/react-native-keychain.d.ts @@ -29,11 +29,15 @@ declare module 'react-native-keychain' { username: string, password: string, service?: string - ): Promise; + ): Promise; function getGenericPassword( service?: string - ): Promise; + ): Promise; + + function resetGenericPassword( + service?: string + ): Promise function requestSharedWebCredentials ( ): Promise;