Typescript Mapped Types, with some attributes optionals

后端 未结 0 1382
无人及你
无人及你 2021-01-04 23:48

In a effort to make my Sequelize strongly typed, I\'m overriding some super methods.

E.g.


type OnlyAttrs = {
    [K in {
        [K in keyof          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题