|
|
@ -5,13 +5,18 @@ export type { DefaultTheme } from './default-theme.js'
|
|
|
|
|
|
|
|
|
|
|
|
export type Awaitable<T> = T | PromiseLike<T>
|
|
|
|
export type Awaitable<T> = T | PromiseLike<T>
|
|
|
|
|
|
|
|
|
|
|
|
// Beware that this may cause performance issues or infinite loops
|
|
|
|
type DeepPartial<T> =
|
|
|
|
// Use only when absolutely necessary
|
|
|
|
T extends Record<string, any>
|
|
|
|
export type DeepPartial<T> = T extends object
|
|
|
|
? T extends
|
|
|
|
? {
|
|
|
|
| Date
|
|
|
|
[K in keyof T]?: DeepPartial<T[K]>
|
|
|
|
| RegExp
|
|
|
|
}
|
|
|
|
| Function
|
|
|
|
: T
|
|
|
|
| ReadonlyMap<any, any>
|
|
|
|
|
|
|
|
| ReadonlySet<any>
|
|
|
|
|
|
|
|
| ReadonlyArray<any>
|
|
|
|
|
|
|
|
? T
|
|
|
|
|
|
|
|
: { [P in keyof T]?: DeepPartial<T[P]> }
|
|
|
|
|
|
|
|
: T
|
|
|
|
|
|
|
|
|
|
|
|
export interface PageData {
|
|
|
|
export interface PageData {
|
|
|
|
relativePath: string
|
|
|
|
relativePath: string
|
|
|
|