From e7b7f2a09dbcb87c58071719a9e5ba76818b2b1e Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 12 Mar 2024 11:23:00 +0100 Subject: [PATCH] Typing: make arguments optional --- src/Logic/Tags/And.ts | 2 +- src/Logic/Tags/SubstitutingTag.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Logic/Tags/And.ts b/src/Logic/Tags/And.ts index 57c6ac3ba..f28e65065 100644 --- a/src/Logic/Tags/And.ts +++ b/src/Logic/Tags/And.ts @@ -78,7 +78,7 @@ export class And extends TagsFilter { return { and: this.and.map((a) => a.asJson()) } } - asHumanString(linkToWiki: boolean, shorten: boolean, properties: Record) { + asHumanString(linkToWiki?: boolean, shorten?: boolean, properties?: Record) { return this.and .map((t) => { let e = t.asHumanString(linkToWiki, shorten, properties) diff --git a/src/Logic/Tags/SubstitutingTag.ts b/src/Logic/Tags/SubstitutingTag.ts index acdda6835..492243720 100644 --- a/src/Logic/Tags/SubstitutingTag.ts +++ b/src/Logic/Tags/SubstitutingTag.ts @@ -43,7 +43,7 @@ export default class SubstitutingTag extends TagsFilter { return new Tag(this._key, Utils.SubstituteKeys(this._value, currentProperties)) } - asHumanString(linkToWiki: boolean, shorten: boolean, properties) { + asHumanString(linkToWiki?: boolean, shorten?: boolean, properties?: Record) { return ( this._key + (this._invert ? "!" : "") +