Kamil Gajowy
Kamil Gajowy
``` // a bit of helpers export class Command implements ICommand { private $resultType!: T } export class Query implements IQuery { private resultType!: T } ``` ``` // declarations.d.ts...
@ldiego08 and others: we have released the package that may be useful to achieve the above: https://github.com/valueadd-poland/nestjs-packages/tree/master/packages/typed-cqrs
Great options @Sikora00 and @Dyostiq Q On top of the above, there could be a graceful transition to require such handler in every module (i.e. to put it in `providers`)...
> @kgajowy but actually there can be an event without handlers @Dyostiq Sure thing, we just need to keep in mind that could be a breaking change ("silencing" some error),...
👍 to put this in the docs