vue-toastfic
Version:
**vue-toastfic** is a simple and customizable toast notification library for Vue.js and Nuxt.js projects. Follow the instructions below to integrate and use it in your application.
72 lines (70 loc) • 2.61 kB
TypeScript
import { IProps } from './props';
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Pick<IProps, "duration" | "close" | "automaticClose" | "position" | "colorful" | "maxToasts" | "theme" | "progressBar" | "classes">>, {
close: boolean;
duration: number;
automaticClose: boolean;
position: string;
colorful: boolean;
maxToasts: number;
theme: string;
progressBar: boolean;
classes: undefined;
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Pick<IProps, "duration" | "close" | "automaticClose" | "position" | "colorful" | "maxToasts" | "theme" | "progressBar" | "classes">>, {
close: boolean;
duration: number;
automaticClose: boolean;
position: string;
colorful: boolean;
maxToasts: number;
theme: string;
progressBar: boolean;
classes: undefined;
}>>>, {
duration: number;
close: boolean;
automaticClose: boolean;
position: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center";
colorful: boolean;
maxToasts: number;
theme: "light" | "dark";
progressBar: boolean;
classes: {
toast?: string | undefined;
toasts?: {
success?: string | undefined;
error?: string | undefined;
info?: string | undefined;
warning?: string | undefined;
default?: string | undefined;
} | undefined;
title?: string | undefined;
description?: string | undefined;
buttonHandle?: string | undefined;
buttonClose?: string | undefined;
icon?: string | undefined;
icons?: {
success?: string | undefined;
error?: string | undefined;
info?: string | undefined;
warning?: string | undefined;
} | undefined;
};
}, {}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithDefaults<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
default: D[K];
}> : P[K];
};
type __VLS_Prettify<T> = {
[K in keyof T]: T[K];
} & {};