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

Missing .d.ts file for usetoast #645

Closed
mcshaz opened this issue Nov 18, 2020 · 1 comment
Closed

Missing .d.ts file for usetoast #645

mcshaz opened this issue Nov 18, 2020 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@mcshaz
Copy link

mcshaz commented Nov 18, 2020

PrimeVue 3.0.1 is missing the typescript declaration file and thus making
import { useToast } from 'primevue/usetoast'; create errors when imported into typescript

I have temporised by adding my own .d.ts file

export declare function useToast(): { add(args:{ severity?: string, summary?: string, detail?: string, life?: number, closable?: boolean, group?: string }): void }
@cagataycivici
Copy link
Member

Duplicate of #630

@cagataycivici cagataycivici marked this as a duplicate of #630 Nov 25, 2020
@cagataycivici cagataycivici self-assigned this Nov 25, 2020
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Nov 25, 2020
@cagataycivici cagataycivici added this to the 3.0.2 milestone Nov 25, 2020
cagataycivici added a commit that referenced this issue Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants