The types of fns parameter are not exposed, e.g. CreatePage & CreateRoot, it is difficult to reuse them when using config-based routing. For example, to separate one createPages into multiple functions:
function dashboard(fns: <Missing_Type>) {
}
function blog(fns: <Missing_Type>) {
}
return createPages(fns => {
dashboard(fns)
blog(fns)
return null as never
})
I think it would be great if the types in create-pages.tsx can be exposed publicly.
The types of
fnsparameter are not exposed, e.g.CreatePage&CreateRoot, it is difficult to reuse them when using config-based routing. For example, to separate onecreatePagesinto multiple functions:I think it would be great if the types in
create-pages.tsxcan be exposed publicly.