Fix Argument of type SafeString' is not assignable to parameter of type 'string' TS error when passing a SafeString to the flash message service methods:
this.flashMessages.success(htmlSafe('Success!'));
// Argument of type SafeString' is not assignable to parameter of type 'string'
This ticket added SafeString as a valid argument to the flash message methods, but currently the type for message is only a string. This PR introduces a Message type for message arguments to include SafeString to align with that behaviour.
Fix
Argument of type SafeString' is not assignable to parameter of type 'string'
TS error when passing aSafeString
to the flash message service methods:This ticket added
SafeString
as a valid argument to the flash message methods, but currently the type for message is only a string. This PR introduces aMessage
type for message arguments to includeSafeString
to align with that behaviour.