How to abort early with Type instantiation is excessively deep and possibly infinite

后端 未结 0 816
清酒与你
清酒与你 2021-01-01 09:55
type PathFinder<
  TFieldValues,
  Key extends keyof TFieldValues = keyof TFieldValues,
> = Key extends string
  ? TFieldValues[Key] extends FileList
    ? Key         


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