Skip to content Skip to sidebar Skip to footer

Automatically Inferring Types From Overridden Interfaces In TypeScript

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: type NextFunction

Solution 1:

Contextual typing of implemented properties is not supported.

More

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


Post a Comment for "Automatically Inferring Types From Overridden Interfaces In TypeScript"