I need to write bindings for this, but can’t figure out how to do it. Need help. Thanks.
var ui = new firebaseui.auth.AuthUI(firebase.auth());
ui.start('#firebaseui-auth-container', uiConfig);
I need to write bindings for this, but can’t figure out how to do it. Need help. Thanks.
var ui = new firebaseui.auth.AuthUI(firebase.auth());
ui.start('#firebaseui-auth-container', uiConfig);
Found the solution by myself
module AuthUI = {
type t
type uiConfig
@module("firebaseui") @new @scope(("firebaseui", "auth"))
external make: Firebase.Auth.t => t = "AuthUI"
@send external start: (t, string, uiConfig) => unit = "start"
}
hi, your solution is excellent.
In case you hit the binding issue next time, you should not be blocked with it, you can always wrap bindings in a raw function and call it. It is slightly less elegant than your current solution, but it works.