no need to export deep partial and exclude non-pure-object stuff

pull/4660/head
Divyansh Singh 5 months ago
parent 01f600fd87
commit 886be3245a

19
types/shared.d.ts vendored

@ -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

Loading…
Cancel
Save