Nextjs Route segment config exports don't have types?
Unanswered
Nile perch posted this in #help-forum
Nile perchOP
Do Route segment config properties not have types associated with them? For instance it's common to have something like this on a page:
or
Do I really have to memorize each of these special export names and valid values they can be set to? Where is the type safety? Why do we not just have a typed
export const dynamic = 'force-dynamic';or
export const revalidate = 10;Do I really have to memorize each of these special export names and valid values they can be set to? Where is the type safety? Why do we not just have a typed
RouteSegmentConfig object that we export instead?