mzohaibqc / svelte-toasts

A highly configurable notification/toast component with individual toast state management capabilities.
https://mzohaibqc.github.io/svelte-toasts/
MIT License
42 stars 6 forks source link

Export the ToastProps type #15

Open gauntface opened 2 months ago

gauntface commented 2 months ago

From what I can tell, there is no way for a user of this module to get the ToastProps type, so typing can't be achieve for the result of functions like toasts.add().

import {ToastProps, toasts} from "svelte-toasts";

let toast: ToastProps | undefined;
if (!toast) {
    toast = toasts.add(...);
}