javascript-decorators
javascript-decorators copied to clipboard
Support generics for send<string>(): string
At present the Send function returns any. It would be nice it we could this to understand the type from the ICommandHandler<,> interface or by specifying a type when using Send as a generic.
- Would anyone else like this feature?
- Has anyone else started / considered this?
- Are there any opinions on this, I might do it myself and would love some feedback
- General comments of limitations / issues would be appreciated.
Context I am a mid-level developer.