type.d.ts 345 B

123456789101112131415
  1. export interface VapConfig {
  2. container: HTMLElement;
  3. src: string;
  4. config: string | {
  5. [key: string]: any;
  6. };
  7. width: number;
  8. height: number;
  9. fps?: number;
  10. mute?: boolean;
  11. precache?: boolean;
  12. onLoadError?: (e: ErrorEvent) => void;
  13. onDestory?: () => void;
  14. [key: string]: any;
  15. }