wycats / javascript-decorators

2.4k stars 127 forks source link

Support generics for send<string>(): string #94

Open gruckion opened 5 years ago

gruckion commented 5 years ago

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.

Context I am a mid-level developer.