UNPKG

@nteract/monaco-editor

Version:

A React component for the monaco editor, tailored for nteract

19 lines (18 loc) 568 B
/** * Polyfill for IntersectionObserver * Always reports the element as intersecting when it is observed. */ export default class AlwaysIntersectingObserver { private callback; constructor(callback: IntersectionObserverCallback); observe(element: Element): void; unobserve(element: Element): void; /** * The following methods are not implemented, but are required by the interface. */ root: Element | null; rootMargin: string; thresholds: number[]; disconnect(): void; takeRecords(): IntersectionObserverEntry[]; }