index.d.ts 329 B

123456789
  1. declare namespace sizeSensor {
  2. type StyledElement = Element & ElementCSSInlineStyle;
  3. export const bind: <T extends StyledElement = HTMLElement>(
  4. element: T | null,
  5. cb: (element: T | null) => void
  6. ) => () => void;
  7. export const clear: (element: StyledElement | null) => void;
  8. }
  9. export = sizeSensor;