You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-toastify

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-toastify

```ts import type { UserModule } from '~/types'; import plugin from 'vue-toastify'; import 'vue-toastify/index.css'; import type { Settings } from 'vue-toastify';

2.0.0-alpha.1
Source
npmnpm
Version published
Weekly downloads
974
-2.7%
Maintainers
1
Weekly downloads
 
Created
Source

install

import type { UserModule } from '~/types';
import plugin from 'vue-toastify';
import 'vue-toastify/index.css';
import type { Settings } from 'vue-toastify';

export const install: UserModule = ({ app }) => {
    const pluginSettings: Settings = {
        .
        .
        .
    };

    app.use(plugin, pluginSettings);
};

ambient declaration for custom notifications

import type { ToastPluginAPI, CustomMethods } from 'vue-toastify';

declare module 'vue-toastify' {
    interface MyMethods extends CustomMethods {
        authenticationError(): string;
    }

    function useToast(): ToastPluginAPI & MyMethods;
}

FAQs

Package last updated on 16 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts