import { CSSProperties, DOMAttributes, ReactNode } from 'react';

type CustomElement<T> = Partial<T & DOMAttributes<T> & { children: ReactNode }>;

declare global {
  namespace JSX {
    interface IntrinsicElements {
      ['virtual-scroll']: CustomElement<{ class?: string; direction: 'x' | 'y'; style?: CSSProperties }>;
    }
  }
}
