@cross-nft-marketplace/auction-house-nft-components
Version:
NFT Media Rendering Components
8 lines (7 loc) • 360 B
TypeScript
/**
* Allows the type to be partial recursively. Useful for merged configuration objects
* From: https://stackoverflow.com/questions/41980195/recursive-partialt-in-typescript
*/
export declare type RecursivePartial<T> = {
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P];
};