Answers for "typescript add global variable to window"

3

typescript add global variable to window

declare global {
    interface Window {
        FB:any;
    }
}

let FB = window.FB; // ok now
Posted by: Guest on October-05-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language