I'm using EddyVerbruggen's Firebase plugin(https://github.com/EddyVerbruggen/nativescript-plugin-firebase) in one of my NativeScript application.
Also, I'm the first time using TypeScript in this project. I've setup everything as it's given in their documentation. But, can't able to understand how to use their code in TypeScript.
Ex:
var firebase = require("nativescript-plugin-firebase");
firebase.init({
persist: true // Allow disk persistence. Default false.
}).then(
function (instance) {
console.log("firebase.init done");
},
function (error) {
console.log("firebase.init error: " + error);
}
);
Can't able to understand how to use above code in Typescript. Any documentation or tutorial link will be a great help.
Regards