Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

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

Open
Sanshain wants to merge 1 commit intoAlexxNB:masterfrom
Sanshain:master
Open

fix ts error "'typeof Route' is not assignable to"#121
Sanshain wants to merge 1 commit intoAlexxNB:masterfrom
Sanshain:master

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant