useToast.d.ts missing api method definitions #958
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
removeGroup and removeAllGroups are defined in ToastService.d.ts but are missing in useToast.d.ts, so TypeScript is complaining here. Trying to import and use ToastService.removeAllGroups() in a component gives a compile error:
Uncaught (in promise) TypeError: primevue_toastservice__WEBPACK_IMPORTED_MODULE_9__.default.removeAllGroup is not a function
Not sure if it is supposed to be called from ToastService only, but the following workaround does the job with useToast:
The text was updated successfully, but these errors were encountered: