UNPKG

@better-auth-ui/core

Version:

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

13 lines (12 loc) 410 B
/** * Recursive partial. Leaves functions and arrays intact so callable props * stay callable and array element types are preserved. */ // biome-ignore lint/suspicious/noExplicitAny: canonical "any function" top type 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