🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@types/popup-window

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/popup-window - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+11
-11
popup-window/index.d.ts

@@ -7,13 +7,13 @@ // Type definitions for popup-window 1.0

interface PopupWindowConfig {
name?: string;
width?: number;
height?: number;
left?: number;
top?: number;
menubar?: boolean;
toolbar?: boolean;
location?: boolean;
status?: boolean;
resizable?: boolean;
scrollbars?: boolean;
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;
}

@@ -20,0 +20,0 @@

{
"name": "@types/popup-window",
"version": "1.0.0",
"version": "1.0.1",
"description": "TypeScript definitions for popup-window",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/popup-window",
"license": "MIT",

@@ -22,4 +23,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "38d47bfba78214df0a3f5a29206d1ac423aad2bf9c776ba8238d7c8ffd334119",
"typeScriptVersion": "3.2"
"typesPublisherContentHash": "4686ca773ea04a248a7d3b71acd18ca5ad2dfbb6cb7b42eafd2ba7fd43c4c1c4",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,61 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/popup-window.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/popup-window/index.d.ts)
````ts
// Type definitions for popup-window 1.0
// Project: https://github.com/webdeveric/popup-window#readme
// Definitions by: Aram Khachatrian <https://github.com/aramwram>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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 a new browser window.
*/
open(): PopupWindow;
/**
* Close the browser window.
*/
close(): PopupWindow;
/**
* Accepts a callback - the callback is called when the window is opened.
*/
opened(callback: (win: PopupWindow) => void): PopupWindow;
/**
* Accepts a callback - the callback is called when the window is closed.
*/
blocked(callback: (win: PopupWindow) => void): PopupWindow;
/**
* Accepts a callback - the callback is called when the window is blocked from opening.
*/
closed(callback: (win: PopupWindow) => void): PopupWindow;
}
export = PopupWindow;
````
### Additional Details
* Last updated: Mon, 12 Oct 2020 17:12:13 GMT
* Last updated: Thu, 08 Jul 2021 20:19:43 GMT
* Dependencies: none

@@ -14,0 +70,0 @@ * Global values: none