@types/resize-observer-browser
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -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` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4553
41