Skip to content

Missing .d.ts file for usetoast #645

Closed
@mcshaz

Description

@mcshaz

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 }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions