svelte-toast
svelte-toast copied to clipboard
Add type definition for SvelteToastOptions
The src/lib/index.js file currently lacks a type definition for SvelteToastOptions.
import { toast } from '@zerodevx/svelte-toast';
// ❌ import type { SvelteToastOptions } from '@zerodevx/svelte-toast/stores';
/** "/stores" is not exposed */
// 😔 export type SvelteToastOptions = Parameters<typeof toast.push>[1];
function customToast(message: string, options: SvelteToastOptions) {
toast(message, options);
}
This change will offer a better development experience for developers using the SvelteToast library.
Hey, thanks so much for the PR - moving the conversation to #107
Is there any plans to release this PR ?