fix: add back LayoutConfig (#2982)
~~Makes it easier to upgrade from 1.x .~~ Initially, I assumed it would be just an alias to `RouteConfig`, but upon closer inspection that has some additional properties that make no sense for a layout.
This commit is contained in:
@@ -28,6 +28,20 @@ export interface RouteConfig {
|
||||
skipAppWrapper?: boolean;
|
||||
}
|
||||
|
||||
export interface LayoutConfig {
|
||||
/**
|
||||
* Skip already inherited layouts
|
||||
* Default: `false`
|
||||
*/
|
||||
skipInheritedLayouts?: boolean;
|
||||
|
||||
/**
|
||||
* Skip rendering the `routes/_app` template
|
||||
* Default: `false`
|
||||
*/
|
||||
skipAppWrapper?: boolean;
|
||||
}
|
||||
|
||||
// TODO: Uncomment once JSR supports global types
|
||||
// declare global {
|
||||
// namespace preact.createElement.JSX {
|
||||
|
||||
Reference in New Issue
Block a user