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

Commit 4914c00

Browse files
error TS1036: Statements are not allowed in ambient contexts #685
1 parent dbe6216 commit 4914c00

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

demo/app/main-view-model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { isIOS } from "tns-core-modules/platform";
55
import { AddEventListenerResult, User } from "nativescript-plugin-firebase";
66
import * as fs from "tns-core-modules/file-system";
77

8-
const firebase = require("nativescript-plugin-firebase");
8+
import * as firebase from"nativescript-plugin-firebase";
99
const firebaseWebApi = require("nativescript-plugin-firebase/app");
1010

1111
declare const Crashlytics: any;

src/analytics/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export * from "./analytics";
1+
import * as analytz from "./analytics";
2+
export const analytics = analytz;

src/firebase.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,7 @@ export namespace admob {
695695
}
696696

697697
// Analytics module
698-
import * as analytics from './analytics';
699-
exports.analytics = analytics;
698+
export * from './analytics';
700699

701700
// Invites module
702701
export namespace invites {

0 commit comments

Comments
 (0)