Typscript Fügen Sie dem Fenster globale Variable hinzu
declare global {
interface Window {
FB:any;
}
}
let FB = window.FB; // ok now
declare global {
interface Window {
FB:any;
}
}
let FB = window.FB; // ok now
(window as any).MyNamespace