From fe6564f6ddac221940cbfdcf5a0d18897006951c Mon Sep 17 00:00:00 2001 From: bluwy Date: Sun, 30 Jan 2022 23:05:06 +0800 Subject: [PATCH] export DispatchOptions --- src/runtime/index.ts | 1 + src/runtime/internal/lifecycle.ts | 2 +- src/runtime/ssr.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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';