message.interface.d.ts 512 B

123456789101112131415161718192021222324
  1. export declare enum MessageType {
  2. info = "info",
  3. success = "success",
  4. warning = "warning",
  5. error = "error"
  6. }
  7. export interface MessageMarquee {
  8. speed?: number;
  9. loop?: number;
  10. delay?: number;
  11. }
  12. export interface MessageProps {
  13. visible?: boolean;
  14. content: string;
  15. align?: string;
  16. theme?: MessageType;
  17. icon?: boolean | string;
  18. closeBtn?: boolean;
  19. action?: string;
  20. marquee?: MessageMarquee;
  21. offset?: object;
  22. duration?: number;
  23. zIndex?: number;
  24. }