Ei kuvausta

index.d.ts 840B

123456789101112131415161718192021222324252627282930
  1. /// <reference types="react" />
  2. import { Component, MouseEvent } from 'react';
  3. interface dataItem {
  4. id?: string | number;
  5. user_avatar?: string;
  6. bill_price?: number;
  7. }
  8. interface Props {
  9. isToggle: boolean;
  10. onToggleChange: Function;
  11. onConsumeItemClick: (e: MouseEvent, clickData: any) => any;
  12. dataSource: Array<dataItem>;
  13. listLength: number;
  14. showLength: number;
  15. options: {
  16. avatarSize: number;
  17. avatarMarginLeftAndRight: number;
  18. kingdomWidth: number;
  19. kingdomHeight: number;
  20. kingdomPosition: [number, number];
  21. };
  22. }
  23. declare class ConsumeListView extends Component<Props, {}> {
  24. static defaultProps: Props;
  25. renderConsumeItem(): JSX.Element[];
  26. renderToggleButton(): JSX.Element | null;
  27. render(): JSX.Element;
  28. }
  29. export { ConsumeListView as default };