pull/5963/head
bluwy 5 years ago
parent 8783ad20da
commit f08ee39ebd

@ -89,7 +89,7 @@ export function set_data_dev(text, data) {
text.data = data;
}
export function add_resize_observer_dev(node: HTMLElement, fn: () => void, opts?: ResizeObserverOptions) {
export function add_resize_observer_dev(node: HTMLElement, fn: () => void, opts?: any) {
if ('ResizeObserver' in window) {
add_resize_observer(node, fn, opts);
} else {

@ -630,7 +630,7 @@ export function add_resize_listener(node: HTMLElement, fn: () => void) {
};
}
export function add_resize_observer(node: HTMLElement, fn: () => void, opts?: ResizeObserverOptions) {
export function add_resize_observer(node: HTMLElement, fn: () => void, opts?: any) {
// @ts-ignore ResizeObserver is not available in current tsconfig lib
const observer = new ResizeObserver(entries => fn.call(entries.values().next().value));
observer.observe(node, opts);

Loading…
Cancel
Save