Mark many of SendMessage's arguments as readonly

This commit is contained in:
Evan Hahn
2021-07-29 14:00:11 -05:00
committed by GitHub
parent 93f60ee5a6
commit 8775c711ae
2 changed files with 119 additions and 107 deletions

View File

@@ -112,7 +112,7 @@ export default class OutgoingMessage {
timestamp: number;
identifiers: Array<string>;
identifiers: ReadonlyArray<string>;
message: Proto.Content | PlaintextContent;
@@ -156,7 +156,7 @@ export default class OutgoingMessage {
callback: (result: CallbackResultType) => void;
contentHint: number;
groupId: string | undefined;
identifiers: Array<string>;
identifiers: ReadonlyArray<string>;
message: Proto.Content | Proto.DataMessage | PlaintextContent;
options?: OutgoingMessageOptionsType;
sendLogCallback?: SendLogCallbackType;