Installation
npm install --save @types/popup-window
Summary
This package contains type definitions for popup-window (https://github.com/webdeveric/popup-window#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/popup-window.
interface PopupWindowConfig {
name?: string | undefined;
width?: number | undefined;
height?: number | undefined;
left?: number | undefined;
top?: number | undefined;
menubar?: boolean | undefined;
toolbar?: boolean | undefined;
location?: boolean | undefined;
status?: boolean | undefined;
resizable?: boolean | undefined;
scrollbars?: boolean | undefined;
}
declare class PopupWindow {
readonly url: string;
readonly name: string;
constructor(url?: string, config?: PopupWindowConfig);
open(): PopupWindow;
close(): PopupWindow;
opened(callback: (win: PopupWindow) => void): PopupWindow;
blocked(callback: (win: PopupWindow) => void): PopupWindow;
closed(callback: (win: PopupWindow) => void): PopupWindow;
}
export = PopupWindow;
Additional Details
- Last updated: Wed, 18 Oct 2023 05:47:08 GMT
- Dependencies: none
Credits
These definitions were written by Aram Khachatrian.