Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/resize-observer-browser

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/resize-observer-browser - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

19

resize-observer-browser/index.d.ts

@@ -7,3 +7,2 @@ // Type definitions for non-npm package resize-observer-browser 0.1

// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7

@@ -21,3 +20,3 @@ interface Window {

*/
box?: 'content-box' | 'border-box';
box?: 'content-box' | 'border-box' | 'device-pixel-content-box';
}

@@ -30,4 +29,3 @@

declare class ResizeObserver {
constructor(callback: ResizeObserverCallback);
interface ResizeObserver {
disconnect(): void;

@@ -38,10 +36,17 @@ observe(target: Element, options?: ResizeObserverOptions): void;

type ResizeObserverCallback = (entries: ReadonlyArray<ResizeObserverEntry>, observer: ResizeObserver) => void;
declare var ResizeObserver: {
new (callback: ResizeObserverCallback): ResizeObserver;
prototype: ResizeObserver;
};
interface ResizeObserverCallback {
(entries: ResizeObserverEntry[], observer: ResizeObserver): void;
}
interface ResizeObserverEntry {
readonly target: Element;
readonly contentRect: DOMRectReadOnly;
readonly borderBoxSize?: ReadonlyArray<ResizeObserverSize>;
readonly contentBoxSize?: ReadonlyArray<ResizeObserverSize>;
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
readonly devicePixelContentBoxSize?: ReadonlyArray<ResizeObserverSize>;
}
{
"name": "@types/resize-observer-browser",
"version": "0.1.4",
"version": "0.1.5",
"description": "TypeScript definitions for resize-observer-browser",

@@ -32,4 +32,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "57ba025d7f873edec6e18d6657b87cfec450e1e5e7637895356593fbf425ced0",
"typeScriptVersion": "3.2"
"typesPublisherContentHash": "6a1138a03b1206f618cc6e2111ccde24f3b237b41eb6fedd92a3414e44a1fb05",
"typeScriptVersion": "3.3"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 12 Oct 2020 18:19:12 GMT
* Last updated: Sat, 09 Jan 2021 22:26:04 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `ResizeObserver`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc