Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 2184446

Browse files
Added TypeScript definition for the resetPassword feature
1 parent 4e8bd94 commit 2184446

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

firebase.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ declare module "nativescript-plugin-firebase" {
9393
password: string;
9494
}
9595

96+
/**
97+
* The options object passed into the resetPassword function.
98+
*/
99+
export interface ResetPasswordOptions {
100+
email: string;
101+
}
102+
96103
/**
97104
* The returned object in the callback handlers
98105
* of the addChildEventListener and addValueEventListener functions.
@@ -106,6 +113,7 @@ declare module "nativescript-plugin-firebase" {
106113
export function init(options: InitOptions): Promise<any>;
107114
export function login(options: LoginOptions): Promise<LoginResult>;
108115
export function createUser(options: CreateUserOptions): Promise<CreateUserResult>;
116+
export function resetPassword(options: ResetPasswordOptions): Promise<any>;
109117
export function push(path: string, value: any): Promise<PushResult>;
110118
export function setValue(path: string, value: any): Promise<any>;
111119
export function remove(path: string): Promise<any>;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-plugin-firebase",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description" : "Fire. Base. Firebase!",
55
"main" : "firebase.js",
66
"nativescript": {

0 commit comments

Comments
 (0)