Add updatePhoneNumber to TS type definitions

This commit is contained in:
Joel Arvidsson
2018-09-11 08:35:57 +02:00
parent a272910119
commit b3c24809ac

7
src/index.d.ts vendored
View File

@@ -784,6 +784,13 @@ declare module 'react-native-firebase' {
*/
updatePassword(password: string): Promise<void>;
/**
* Updates the user's phone number.
* See Firebase docs for more information on security & email validation.
* This will Promise reject is the user is anonymous.
*/
updatePhoneNumber(credential: AuthCredential): Promise<void>;
/**
* Updates a user's profile data.
* Profile data should be an object of fields to update: