naskah tambahkan variabel global ke jendela
declare global {
interface Window {
FB:any;
}
}
let FB = window.FB; // ok now
declare global {
interface Window {
FB:any;
}
}
let FB = window.FB; // ok now