is assignable to the constraint of type 'X', but 'X' could be instanciated with a different subtype of constraint … when generic types are the same

前端 未结 0 743
粉色の甜心
粉色の甜心 2021-01-12 19:47
// Utility type like Omit but does not loose the known keys
export type RemappedOmit = {
  [P in keyof T as Exclude]: T[P         


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