Hi! First, thanks for a great library, it seems very useful so far.
For some reason, when calling params.setMessage() using the @StandardParams parameter decorator, typescript complains that it is possible undefined:
Looking at the types definition, it looks like the interface declares it as optional. Is this expected? Is there a preferred way to ensure the call to setMessage is type-safe?
Hi! First, thanks for a great library, it seems very useful so far.
For some reason, when calling
params.setMessage()
using the@StandardParams
parameter decorator, typescript complains that it is possible undefined:Looking at the types definition, it looks like the interface declares it as optional. Is this expected? Is there a preferred way to ensure the call to setMessage is type-safe?