Closed sangxxh closed 3 years ago
Added definition for let:params
variable in 0.4.11
But I have no issues with other attributes. All works as expected for me. I use clean default typescript template with your code.
Thanks @AlexxNB . let:params
is working.
For others, what I meant is, for example, using let:path
will yield the same error. But I guess you don't intend to expose them as slot props? I don't use them anyway and I think this issue can be closed, just wanna confirm first.
Expoosed only params
right now. (I'll add more route data info soon).
path, fallback - it is Route
properties, not variables.
I set up the project using https://github.com/sveltejs/template with Typescript enabled.
Using tinro's Parameters example from
README.md
:let:params
in Typescript yield error:The same error yields if using any other props (
path
,fallback
, etc.)