Required<T>: {
    [P in keyof T]-?: T[P]
}

Make all properties in T required

类型参数

  • T