diff --git a/src/runtime/index.ts b/src/runtime/index.ts index 8e12f9f0ee..96b2b84b99 100644 --- a/src/runtime/index.ts +++ b/src/runtime/index.ts @@ -11,6 +11,7 @@ export { hasContext, tick, createEventDispatcher, + DispatchOptions, SvelteComponentDev as SvelteComponent, SvelteComponentTyped } from 'svelte/internal'; diff --git a/src/runtime/internal/lifecycle.ts b/src/runtime/internal/lifecycle.ts index cd726598a8..5a9dc3d4d2 100644 --- a/src/runtime/internal/lifecycle.ts +++ b/src/runtime/internal/lifecycle.ts @@ -27,7 +27,7 @@ export function onDestroy(fn: () => any) { get_current_component().$$.on_destroy.push(fn); } -interface DispatchOptions { +export interface DispatchOptions { cancelable?: boolean; } diff --git a/src/runtime/ssr.ts b/src/runtime/ssr.ts index cbac1f3ef8..9685d986aa 100644 --- a/src/runtime/ssr.ts +++ b/src/runtime/ssr.ts @@ -6,6 +6,7 @@ export { hasContext, tick, createEventDispatcher, + DispatchOptions, SvelteComponent, SvelteComponentTyped } from './index';