This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Deeply anyfy nested Date and string properties : | |
type Any<T> = { | |
[Key in keyof T]: T[Key] extends { [K: string]: any } ? (T[Key] extends Date | string ? any : Any<T[Key]>) : any; | |
}; | |