Live data from Hacker News

Type Polymorphic Functions in TypeScript

zhenghao.io

11–15 of 15 posts

Re: Type Polymorphic Functions in TypeScript

#14

Can function overloads be marked private or deprecated independently? Does the implementation need to repeat the effective union type?

> Can function overloads be marked private or deprecated independently?

Private independently, no. Deprecated independently, yes.

> Does the implementation need to repeat the effective union type?

Yes, or use something even broader like `any`;

Post reply on HN