diff --git a/Router.d.ts b/Router.d.ts index 686d5e3..e64617b 100644 --- a/Router.d.ts +++ b/Router.d.ts @@ -68,22 +68,6 @@ export interface WrappedComponent { //_sveltesparouter?: boolean } -/** - * Wraps a component to add route pre-conditions. - * - * @deprecated Use `wrap` from `svelte-spa-router/wrap` instead. This function will be removed in a later version. - * - * @param component Svelte component for the route - * @param userData Optional object that will be passed to each `conditionsFailed` event - * @param conditions Route pre-conditions to add, which will be executed in order - * @returns Wrapped component - */ -export function wrap( - component: typeof SvelteComponent, - userData?: object, - ...conditions: RoutePrecondition[] -): WrappedComponent - /** * Navigates to a new page programmatically. * diff --git a/Router.svelte b/Router.svelte index 5ef7089..6920389 100644 --- a/Router.svelte +++ b/Router.svelte @@ -1,27 +1,6 @@