WindowLike: {
    addEventListener: (
        type: string,
        listener: (event: any) => any,
        options?: { signal?: any },
    ) => any;
    close?: () => void;
    closed?: boolean;
    location?: { origin?: string };
    open: (url: string, target: string, features: string) => WindowLike | null;
    opener?: WindowLike | null;
    parent?: WindowLike | null;
    postMessage: (message: any, targetOrigin: string) => any;
}

Things that looks like a Window

Type declaration

  • addEventListener: (type: string, listener: (event: any) => any, options?: { signal?: any }) => any
  • Optionalclose?: () => void
  • Optionalclosed?: boolean
  • Optionallocation?: { origin?: string }
  • open: (url: string, target: string, features: string) => WindowLike | null
  • Optionalopener?: WindowLike | null
  • Optionalparent?: WindowLike | null
  • postMessage: (message: any, targetOrigin: string) => any