value is optional

Co-authored-by: Bruno Windels <brunow@matrix.org>
This commit is contained in:
R Midhun Suresh 2021-11-17 11:43:59 +05:30 committed by GitHub
parent b0ab8cd77f
commit 9c8f96e233
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -159,7 +159,7 @@ export class LogItem implements ILogItem {
item.end = item.start; item.end = item.start;
} }
set(key: string | object, value: unknown): void { set(key: string | object, value?: unknown): void {
if(typeof key === "object") { if(typeof key === "object") {
const values = key; const values = key;
Object.assign(this._values, values); Object.assign(this._values, values);