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

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

17
types/shared.d.ts vendored

@ -5,12 +5,17 @@ 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
| ReadonlyMap<any, any>
| ReadonlySet<any>
| ReadonlyArray<any>
? T
: { [P in keyof T]?: DeepPartial<T[P]> }
: T : T
export interface PageData { export interface PageData {

Loading…
Cancel
Save