UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

10 lines 460 B
/** * Type that recursively makes all properties in an object optional. Use sparingly, as this is computationally expensive. * Implementation: https://stackoverflow.com/questions/61132262/typescript-deep-partial * Performance issues: https://github.com/microsoft/TypeScript/issues/35729 */ export type DeepPartial<T> = T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T; export default DeepPartial; //# sourceMappingURL=DeepPartial.d.ts.map