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

Commit b70f932

Browse files
committed
Corrected TypeScript definitions with firebase calls returning Promises
1 parent 8fcf2d3 commit b70f932

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

firebase.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ declare module "nativescript-plugin-firebase" {
9191

9292
export function init(options : InitOptions): Promise<any>;
9393
export function login(options : LoginOptions): Promise<LoginResult>;
94-
export function createUser(options : CreateUserOptions): string;
95-
export function push(path: string, value: any): void;
96-
export function setValue(path: string, value: any): void;
97-
export function remove(path: string): void;
98-
export function query(onValueEvent: (data: FBData) => void, path: string, options: QueryOptions): void;
99-
export function addChildEventListener(onChildEvent: (data: FBData) => void, path: string): void;
100-
export function addValueEventListener(onValueEvent: (data: FBData) => void, path: string): void;
94+
export function createUser(options: CreateUserOptions): Promise<any>;
95+
export function push(path: string, value: any): Promise<any>;
96+
export function setValue(path: string, value: any): Promise<any>;
97+
export function remove(path: string): Promise<any>;
98+
export function query(onValueEvent: (data: FBData) => void, path: string, options: QueryOptions): Promise<any>;
99+
export function addChildEventListener(onChildEvent: (data: FBData) => void, path: string): Promise<any>;
100+
export function addValueEventListener(onValueEvent: (data: FBData) => void, path: string): Promise<any>;
101101
}

0 commit comments

Comments
 (0)