S
SolidJS14mo ago
Nathan

Typing nested routeData

It seems the API for typing nested routeData has changed after I updated to 0.3.7. I used to have
import { routeData as appRouteData } from "../app"

export const routeData = ({ data }: RouteDataArgs<typeof appRouteData>) => createRouteData...
import { routeData as appRouteData } from "../app"

export const routeData = ({ data }: RouteDataArgs<typeof appRouteData>) => createRouteData...
But this doesn't work anymore. How do I adjust the types so that the data argument has the appropriate type?
1 Reply
Martnart
Martnart14mo ago
You'll need to use RouteDataFuncArgs instead
Want results from more Discord servers?
Add your server