Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in plugin configuration after updating to latest version #18

Closed
MellKam opened this issue Aug 17, 2023 · 1 comment
Closed

Error in plugin configuration after updating to latest version #18

MellKam opened this issue Aug 17, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@MellKam
Copy link

MellKam commented Aug 17, 2023

Notivue version: 1.2.2

Now the type expects all notification types, and I cant pass my configuration only for success alert.

  Overload 1 of 2, '(plugin: Plugin<[config?: NotivueConfig | undefined]>, config?: NotivueConfig | undefined): App<Element>', gave the following error.
    Type '{ success: { duration: number; }; }' is missing the following properties from type 'Record<NotificationType | "global", NotificationOptions_2>': error, info, warning, promise, and 3 more.
  Overload 2 of 2, '(plugin: Plugin<[config?: NotivueConfig | undefined]>, options: [config?: NotivueConfig | undefined]): App<Element>', gave the following error.
    Argument of type '{ limit: number; position: string; pauseOnHover: boolean; pauseOnTabChange: boolean; notifications: { success: { duration: number; }; }; }' is not assignable to parameter of type '[config?: NotivueConfig | undefined]'.
      Object literal may only specify known properties, and 'limit' does not exist in type '[config?: NotivueConfig | undefined]'.```
@smastrom
Copy link
Owner

Thank you for reporting! Please update:

pnpm add notivue@latest

@smastrom smastrom added the bug Something isn't working label Aug 17, 2023
@smastrom smastrom self-assigned this Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants