Automatically inferring types from overridden interfaces in TypeScript

前端 未结 1 1765
轮回少年
轮回少年 2021-01-21 02:28

I\'m trying to create some TypeScript definitions for modules that already exist. In a particular interface to be implemented, the signature looks like this:

ty         


        
1条回答
  •  太阳男子
    2021-01-21 03:16

    Contextual typing of implemented properties is not supported.

    More

    The main issue that tracked this is https://github.com/Microsoft/TypeScript/issues/1373

    0 讨论(0)
提交回复
热议问题