It should only contain the routes that the framework needs, then anything else can be added by the framework user.
The current enum should be deprecated and a new minimal one added, e.g.
enum DeconfRoutes {
Session = 'session',
...
}
Then a framework user can:
import { DeconfRoutes } from '@openlab/deconf-ui-toolkit'
enum AppRoutes {
CustomPage = 'customPage'
}
// For convenience, you could do this?
// https://stackoverflow.com/questions/52857698/extending-enum-in-typescript
const Routes = { ...AppRoutes, ...DeconfRoutes }
type Routes = AppRoutes | DeconfRoutes
It should only contain the routes that the framework needs, then anything else can be added by the framework user.
The current enum should be deprecated and a new minimal one added, e.g.
Then a framework user can: