Hacker News new | ask | show | jobs
by 1_1xdev1 563 days ago
Like `ParamSpec`?
1 comments

ParamSpec doesn't have the same objective as what they're saying. The sibling comment shows how you can get the proper types in TypeScript and use them as types for other functions. On the other hand, ParamSpec is a hack to properly forward function argument types to decorators.