Skip to content

Type for keepOnHover is missing #222

@xest

Description

@xest

Version

  • vue: 2.6.14
  • vuetify: 2.6.3
  • typescript: 4.5.5
  • vue-toasted: 1.1.28

parseOptions() in dist/vue-toasted.js

	options.action = options.action || null;
	options.className = options.className || null;
	options.closeOnSwipe = typeof options.closeOnSwipe !== 'undefined' ? options.closeOnSwipe : true;
	options.containerClass = options.containerClass || null;
	options.duration = options.duration || null;
	options.fitToScreen = options.fitToScreen || null;
	options.fullWidth = options.fullWidth || false;
	options.icon = options.icon || null;
	options.iconPack = options.iconPack || 'material';
	options.keepOnHover = options.keepOnHover || false;
	options.onComplete = options.onComplete || null;
	options.position = options.position || "top-right";
	options.theme = options.theme || "toasted-primary";
	options.type = options.type || "default";

interface ToastOptions in types/index.d.ts

  action?: ToastAction | ToastAction[],
  className?: string | string[],
  closeOnSwipe?: boolean,
  containerClass?: string | string[],
  duration?: number,
  fitToScreen?: boolean,
  fullWidth?: boolean,
  icon?: ((ToastIcon: HTMLElement) => HTMLElement) | string | { name: string, after: boolean },
  iconPack?: ToastIconPack|string
  onComplete?: () => any,
  position?: ToastPosition,
  singleton?: boolean,
  theme?: ToastTheme|string,
  type?: ToastType|string,
  • keepOnHover is missing
  • singleton is added

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions