Typescript: How to infer a generic type in a higher order function from the input parameter of the returned function

前端 未结 0 862
挽巷
挽巷 2021-01-29 05:49
type FindCallback = (value: T) => boolean;

type FindResult = (arr: T[]) => T | undefined;

type FindFn =          


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