UNPKG

@better-auth-ui/core

Version:

Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.

8 lines (7 loc) 311 B
/** * Recursive partial. Leaves functions and arrays intact so callable props * stay callable and array element types are preserved. */ export type DeepPartial<T> = T extends (...args: any[]) => any ? T : T extends readonly unknown[] ? T : T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T;