javascript-decorators icon indicating copy to clipboard operation
javascript-decorators copied to clipboard

Support generics for send<string>(): string

Open gruckion opened this issue 6 years ago • 0 comments

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.

gruckion avatar Jul 21 '19 22:07 gruckion