@types/resize-observer-browser
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -19,3 +19,3 @@ // Type definitions for non-npm package resize-observer-browser 0.1 | ||
*/ | ||
box?: 'content-box' | 'border-box' | 'device-pixel-content-box'; | ||
box?: 'content-box' | 'border-box' | 'device-pixel-content-box' | undefined; | ||
} | ||
@@ -48,3 +48,3 @@ | ||
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>; | ||
readonly devicePixelContentBoxSize?: ReadonlyArray<ResizeObserverSize>; | ||
readonly devicePixelContentBoxSize?: ReadonlyArray<ResizeObserverSize> | undefined; | ||
} |
{ | ||
"name": "@types/resize-observer-browser", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "TypeScript definitions for resize-observer-browser", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/resize-observer-browser", | ||
"license": "MIT", | ||
@@ -32,4 +33,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "6a1138a03b1206f618cc6e2111ccde24f3b237b41eb6fedd92a3414e44a1fb05", | ||
"typeScriptVersion": "3.3" | ||
"typesPublisherContentHash": "f72c689bea68ac208fbdbe961a355fa3434b3c6361f6b770e30c6d9997f1ce5c", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,57 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/resize-observer-browser. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/resize-observer-browser/index.d.ts) | ||
````ts | ||
// Type definitions for non-npm package resize-observer-browser 0.1 | ||
// Project: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver, https://developers.google.com/web/updates/2016/10/resizeobserver, https://wicg.github.io/ResizeObserver/ | ||
// Definitions by: Chives <https://github.com/chivesrs> | ||
// William Furr <https://github.com/wffurr> | ||
// Alexander Shushunov <https://github.com/AlexanderShushunov> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
interface Window { | ||
ResizeObserver: typeof ResizeObserver; | ||
} | ||
interface ResizeObserverOptions { | ||
/** | ||
* Sets which box model the observer will observe changes to. Possible values | ||
* are `content-box` (the default), and `border-box`. | ||
* | ||
* @default 'content-box' | ||
*/ | ||
box?: 'content-box' | 'border-box' | 'device-pixel-content-box' | undefined; | ||
} | ||
interface ResizeObserverSize { | ||
readonly inlineSize: number; | ||
readonly blockSize: number; | ||
} | ||
interface ResizeObserver { | ||
disconnect(): void; | ||
observe(target: Element, options?: ResizeObserverOptions): void; | ||
unobserve(target: Element): 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 devicePixelContentBoxSize?: ReadonlyArray<ResizeObserverSize> | undefined; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Sat, 09 Jan 2021 22:26:04 GMT | ||
* Last updated: Wed, 07 Jul 2021 18:02:25 GMT | ||
* Dependencies: none | ||
@@ -14,0 +66,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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6531
1
69