View on GitHub

tab-info-extension

Home > tab-info > assertIsMessage

assertIsMessage() function

Assert whether a given value is not only a MessageBase, but also has a key property of a known message type

Signature:

export declare function assertIsMessage(message: unknown): asserts message is Message;

Parameters

Parameter Type Description
message unknown value to test

Returns:

asserts message is Message