📅  最后修改于: 2022-03-11 14:57:26.401000             🧑  作者: Mango
// 1 level depth
type Nullable = { [K in keyof T]: T[K] | null };
// deep by recurisve call
type DeepNullable = {
[K in keyof T]: DeepNullable | null;
};