nestjs icon indicating copy to clipboard operation
nestjs copied to clipboard

feat(rabbitmq): add generic type to publish for simple type checking

Open iam10k opened this issue 2 years ago • 0 comments

This change provides a way to have basic type checking done when publishing messages. By default it still uses the generic type any. public publish<T = any>( so no changes are needed for existing code.

Simple example of the benefit at development stage. image

iam10k avatar Aug 05 '22 11:08 iam10k