I'm working with this simple codebase
import { FirebaseApp, FirebaseOptions } from "firebase/app";
function example(app){
// error: FirebaseApp only refers to a type
console.log(app instanceof FirebaseApp)
}
In this scenario, the FirebaseApp
is actually a typescript interface that does not exist during runtime. How can I verify if the argument provided is truly an instance of firebase app?