type.d.ts 348 B

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