Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sanshain
Copy link

@Sanshain Sanshain commented Sep 18, 2022

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

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
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant