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

Commit

Permalink
Added TypeScript definition for the resetPassword feature
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Mar 31, 2016
1 parent 4e8bd94 commit 2184446
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions firebase.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ declare module "nativescript-plugin-firebase" {
password: string;
}

/**
* The options object passed into the resetPassword function.
*/
export interface ResetPasswordOptions {
email: string;
}

/**
* The returned object in the callback handlers
* of the addChildEventListener and addValueEventListener functions.
Expand All @@ -106,6 +113,7 @@ declare module "nativescript-plugin-firebase" {
export function init(options: InitOptions): Promise<any>;
export function login(options: LoginOptions): Promise<LoginResult>;
export function createUser(options: CreateUserOptions): Promise<CreateUserResult>;
export function resetPassword(options: ResetPasswordOptions): Promise<any>;
export function push(path: string, value: any): Promise<PushResult>;
export function setValue(path: string, value: any): Promise<any>;
export function remove(path: string): Promise<any>;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-plugin-firebase",
"version": "2.1.1",
"version": "2.1.2",
"description" : "Fire. Base. Firebase!",
"main" : "firebase.js",
"nativescript": {
Expand Down

0 comments on commit 2184446

Please sign in to comment.