logoalt Hacker News

Someonetoday at 3:20 PM1 replyview on HN

Users do not care about that, but they want to not see type errors or warnings when they integrate your API in their code.

That’s why you want to run their type checker on your API. you cannot know what “their type checker” is, so you want to run all popular type checkers on your API.


Replies

ForHackernewstoday at 3:38 PM

Sounds like a them-problem. Their type checker can accept my declared typings for my public API, or they can override it with their own custom type stubs if they have objections.