Ts Type In Window

[Solved] Ts Type In Window | Whatever - Code Explorer | yomemimo.com
Question : ts type in window

Answered by : mychi-darko

declare global { interface Window { MyNamespace: any; }
}
window.MyNamespace = window.MyNamespace || {};

Source : https://stackoverflow.com/questions/12709074/how-do-you-explicitly-set-a-new-property-on-window-in-typescript | Last Update : Wed, 15 Dec 21

Answers related to ts type in window

Code Explorer Popular Question For Whatever