Is it possible in TypeScript to define an extended type for a global object using the `typeof` keyword?
Example 1:
window.id = 1
interface window{
id: typeof window.id;
}
Example 2:
Array.prototype.unique = function() {
return [...new Set(this)];
};
interface Array<T> {
// unique(): Array<T>;
unique(): typeof Array.prototype.unique
}