UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

6 lines (4 loc) 121 B
type PartialShallow<T> = { [P in keyof T]?: T[P] extends object ? object : T[P]; }; export type { PartialShallow };