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

Commit

Permalink
There's a few function params missing in the TS definition file #175
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Oct 16, 2016
1 parent 161dae5 commit 7f62d0c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion firebase.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ declare module "nativescript-plugin-firebase" {
* Can be found in the firebase console.
*/
storageBucket?: string;

/**
* For FCM either pass in this callback function here, or use addOnMessageReceivedCallback
*/
onPushTokenReceivedCallback?: (data: string) => void;

/**
* For FCM either pass in this callback function here, or use addOnPushTokenReceivedCallback
*/
onMessageReceivedCallback?: (data: Message) => void;
}

export interface QueryRangeOption {
Expand Down Expand Up @@ -332,6 +342,11 @@ declare module "nativescript-plugin-firebase" {
badge?: number;
}

export interface ProgressStatus {
fractionCompleted: Number;
percentageCompleted: Number;
}

/**
* Use either the 'localFile' or 'localFullPath' param to upload a file.
*/
Expand Down Expand Up @@ -366,7 +381,7 @@ declare module "nativescript-plugin-firebase" {
* console.log("Percentage complete: " + status.percentageCompleted);
* }
*/
onProgress?: Function;
onProgress: (data: ProgressStatus) => void;
}

export interface UploadFileResult {
Expand Down

0 comments on commit 7f62d0c

Please sign in to comment.