Skip to content

Commit

Permalink
[FIX][TYPESCRIPT][functions] add overload constructor for changing fu…
Browse files Browse the repository at this point in the history
…nctions region or app (#2131)
  • Loading branch information
tkow authored and mikehardy committed Jun 10, 2019
1 parent eab6862 commit ce72d10
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ declare module 'react-native-firebase' {

firestore(): RNFirebase.firestore.Firestore;

functions(): RNFirebase.functions.Functions;
functions(appOrRegion?: string| App, region?: string): RNFirebase.functions.Functions;

iid(): RNFirebase.iid.InstanceId;

Expand Down Expand Up @@ -2312,6 +2312,11 @@ declare module 'react-native-firebase' {
* Uppercased + underscored variables of @FunctionsErrorCode
*/
HttpsErrorCode: HttpsErrorCode;
/**
* constructor overload:
* See https://github.com/invertase/react-native-firebase-docs/blob/master/docs/functions/reference/functions.md
*/
(appOrRegion?: string| App, region?: string): Functions
}

interface HttpsError extends Error {
Expand Down

0 comments on commit ce72d10

Please sign in to comment.