#deps function parameter is of type {} why ?
8 messages · Page 1 of 1 (latest)
make sure your properties are in the right order
https://tanstack.com/router/latest/docs/eslint/create-route-property-order
For the following functions, the property order of the passed in object matters due to type inference: createRoute createFileRoute createRootRoute createRootRouteWithContext The correct property order...
wow thank you so much mate
Yeah, I fell for it too, such a tricky thing...
Created feature request for it: https://github.com/TanStack/router/discussions/6844
Do you think that this is related to the issue we had in the properties' order ?
Today we are excited to announce the Release Candidate (RC) of TypeScript 6.0! To get started using the RC, you can get it through npm with the following command: npm install -D typescript@rc TypeScript 6.0 is a unique release in that we intend for it to be the last release based on the current JavaScript […]
@indigo thorn I am not sure. Becuase in TanStack case it does not depend on method/arrow function syntax, error happens in both cases with incorrect ordering(definition for parameters itself use arrow syntax). This issue might be with what Theo was talking in his last TS video, and that issue was not fixed...
I just tested it with typescript@6.0.0-dev.20260307 and error is still there when using incorrect order.
So no, I think it is not related
This issue might be with what Theo was talking in his last TS video, and that issue was not fixed
Ahaa, yes I remember now, aah that sucks