Created
December 18, 2020 16:37
-
-
Save createdbymahmood/e7f8b8fb043501c111d17c187c8bcba6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { PartialDeep } from "type-fest"; | |
export type RouteConfigProps = PartialDeep<{ | |
layout: { | |
include: boolean; | |
topbar: boolean; | |
}; | |
accessKey: string; | |
}>; | |
export const routeConfigs: Record< | |
"home" | "users" | "user", | |
RouteConfigProps | |
> = { | |
home: { | |
layout: { | |
include: false, | |
topbar: false, | |
}, | |
accessKey: "home", | |
}, | |
users: { | |
layout: { | |
include: true, | |
topbar: true, | |
}, | |
accessKey: "users", | |
}, | |
user: { | |
layout: { | |
topbar: true, | |
}, | |
accessKey: "user", | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment