Typescript: generic that extends a type with a generic

后端 未结 2 1927
隐瞒了意图╮
隐瞒了意图╮ 2021-01-18 01:58

Say I have an interface

interface Applicative {}

Now I want to define a function f that:

  • takes a funct
2条回答
  •  不要未来只要你来
    2021-01-18 02:23

    Unfortunately, typescript does not (yet?) implement higher kinded types.

    See https://github.com/Microsoft/TypeScript/issues/1213 for details

提交回复
热议问题