Typing: make arguments optional
This commit is contained in:
parent
8b4e0b0276
commit
e7b7f2a09d
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ export class And extends TagsFilter {
|
|||
return { and: this.and.map((a) => a.asJson()) }
|
||||
}
|
||||
|
||||
asHumanString(linkToWiki: boolean, shorten: boolean, properties: Record<string, string>) {
|
||||
asHumanString(linkToWiki?: boolean, shorten?: boolean, properties?: Record<string, string>) {
|
||||
return this.and
|
||||
.map((t) => {
|
||||
let e = t.asHumanString(linkToWiki, shorten, properties)
|
||||
|
|
|
@ -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<string, string>) {
|
||||
return (
|
||||
this._key +
|
||||
(this._invert ? "!" : "") +
|
||||
|
|
Loading…
Reference in a new issue