View on GitHub

tab-info-extension

Home > tab-info > assertIsMessageBase

assertIsMessageBase() function

Assert whether a value is of type MessageBase.

Signature:

export declare function assertIsMessageBase(message: unknown): asserts message is MessageBase<string>;

Parameters

Parameter Type Description
message unknown a value to test

Returns:

asserts message is MessageBase<string>