common.d.ts 956 B

12345678910111213141516171819202122232425262728293031323334
  1. export declare type Classes = Array<string>;
  2. export interface Styles {
  3. [css: string]: string | number;
  4. }
  5. export declare type OptionData = {
  6. label?: string;
  7. value?: string | number;
  8. } & {
  9. [key: string]: any;
  10. };
  11. export declare type TreeOptionData = {
  12. children?: Array<TreeOptionData>;
  13. } & OptionData;
  14. export declare type SizeEnum = 'small' | 'medium' | 'large';
  15. export declare type HorizontalAlignEnum = 'left' | 'center' | 'right';
  16. export declare type VerticalAlignEnum = 'top' | 'middle' | 'bottom';
  17. export declare type ClassName = {
  18. [className: string]: any;
  19. } | ClassName[] | string;
  20. export declare type CSSSelector = string;
  21. export interface KeysType {
  22. value?: string;
  23. label?: string;
  24. }
  25. export interface HTMLElementAttributes {
  26. [css: string]: string;
  27. }
  28. export interface TScroll {
  29. bufferSize?: number;
  30. isFixedRowHeight?: boolean;
  31. rowHeight?: number;
  32. threshold?: number;
  33. type: 'lazy' | 'virtual';
  34. }