source: imaps-frontend/node_modules/resize-observer-polyfill/dist/ResizeObserver.js.flow@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 688 bytes
Line 
1// @flow
2
3class DOMRectReadOnly {
4 +x: number;
5 +y: number;
6 +width: number;
7 +height: number;
8 +top: number;
9 +right: number;
10 +bottom: number;
11 +left: number;
12}
13
14class ResizeObserverEntry {
15 +target: Element;
16 +contentRect: DOMRectReadOnly;
17}
18
19type Entries = $ReadOnlyArray<ResizeObserverEntry>;
20
21type ResizeObserverCallback = {
22 (entries: Entries, observer: ResizeObserver): void
23};
24
25declare class ResizeObserver {
26 constructor(ResizeObserverCallback): ResizeObserver;
27 observe(target: Element): void;
28 unobserve(target: Element): void;
29 disconnect(): void;
30};
31
32declare export default typeof ResizeObserver;
Note: See TracBrowser for help on using the repository browser.