lucky-canvas.d.ts 407 B

123456789101112131415
  1. declare module "@lucky-canvas/react" {
  2. import { FC } from "react";
  3. interface LuckyCanvasProps<B = any, P = any, A = any> {
  4. ref: any;
  5. width: string;
  6. height: string;
  7. blocks: B[];
  8. prizes: P[];
  9. buttons: A[];
  10. onStart: () => void;
  11. onEnd: (p: P) => void;
  12. defaultConfig: any;
  13. }
  14. export const LuckyWheel: FC<LuckyCanvasProps>;
  15. }