File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1- import type { SvelteComponent } from 'svelte' ;
1+ import type { Component } from 'svelte' ;
22
33export interface RouteProps {
44 path ?: string ;
5- component ?: typeof SvelteComponent ;
5+ component ?: Component ;
66}
77
8- export default class Route extends SvelteComponent < RouteProps > { }
8+ declare const Route : Component < RouteProps > ;
9+ export default Route ;
Original file line number Diff line number Diff line change 1- import type { SvelteComponent } from 'svelte' ;
1+ import type { Component } from 'svelte' ;
22
33export interface RouteInfo {
44 path : string ;
@@ -19,4 +19,5 @@ export interface RouterProps {
1919 beforeEach ?: NavigationGuard [ ] ;
2020}
2121
22- export default class Router extends SvelteComponent < RouterProps > { }
22+ declare const Router : Component < RouterProps > ;
23+ export default Router ;
Original file line number Diff line number Diff line change 1- import type { SvelteComponent } from 'svelte' ;
2- import type { NavigationGuard } from './Router.svelte' ;
1+ import type { NavigationGuard } from './Router.svelte' ;
32
43export interface RouterContext {
54 base : string ; // Base path of the current router instance
@@ -14,4 +13,4 @@ export interface RouterContext {
1413 getQueryParam : ( key : string ) => string | undefined ;
1514 hasQueryParam : ( key : string ) => boolean ;
1615 removeQueryParams : ( keys : string [ ] ) => void ;
17- }
16+ }
You can’t perform that action at this time.
0 commit comments