infer argument types for generic method decorator factory #39903
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Suggestion
An idea for TypeScript
Search Terms
TypedPropertyDescriptor generic method decorator arguments
Suggestion
I would like for a method decorator factory to be able to receive a callback as an argument whose own arguments mirror the method the decorator is being applied to.
Use Cases
I would like to write a custom memoize decorator for methods that allows me to provide a function which would return a cache key based on the original method's arguments.
Examples
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: