AlexxNB / tinro

Highly declarative, tiny, dependency free router for Svelte's web applications.
MIT License
678 stars 30 forks source link

fix ts error "'typeof Route' is not assignable to" #121

Open Sanshain opened 2 years ago

Sanshain commented 2 years ago

An error has occurred on latest versions of typescript (4.8.2), svelte (3.49.0) and tinro (0.6.12 - now the latest version on npm):

image

Full error text:

Argument of type 'typeof Route' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent'.
  Type 'Route' is missing the following properties from type 'ATypedSvelteComponent': $$events_def, $on

This commit completely solved the problem for me