UNPKG

@nteract/monaco-editor

Version:

A React component for the monaco editor, tailored for nteract

18 lines (17 loc) 459 B
/** * This module is responsible for monitoring elements and call the resizable components. */ /** * Interface for resizable components. */ export interface IResizable { onResize(): void; } /** * Observe the element for resize events. */ export declare function observe(resizable: IResizable, element: HTMLDivElement): () => void; /** * Unobserve the element for resize events. */ export declare function unobserve(element: HTMLDivElement): void;