createFileRoute question
Hi,
I'm using file based routing and wonder why a path is required to the
createFileRoute
method?
It doesn't seem to matter what I specify as path. For example, if I set it to '/' (which is a valid path) on all my createFileRoute
, the app works just fine. I can't specify anything though, it has to be some of my valid paths to not get type(script) error though.2 Replies
foreign-sapphire•16mo ago
it's necessary of typescript so that the correct types can be enforced
stormy-goldOP•16mo ago
ok - thanks good to know just to be sure I haven't missed something else. Thanks.