diff --git a/UI/Input/Toggle.ts b/UI/Input/Toggle.ts index 154d7af8b..85412fb1e 100644 --- a/UI/Input/Toggle.ts +++ b/UI/Input/Toggle.ts @@ -31,7 +31,7 @@ export default class Toggle extends VariableUiElement { * Same as `Toggle`, but will swap on click */ export class ClickableToggle extends Toggle { - public readonly isEnabled: UIEventSource + public declare readonly isEnabled: UIEventSource constructor( showEnabled: string | BaseUIElement, diff --git a/UI/Input/ValidatedTextField.ts b/UI/Input/ValidatedTextField.ts index e9d307dc8..594b9fdf0 100644 --- a/UI/Input/ValidatedTextField.ts +++ b/UI/Input/ValidatedTextField.ts @@ -297,11 +297,11 @@ class WikidataTextField extends TextFieldDef { ], "nl": ["straat","plein","pad","weg",laan"] }, - + "#": "Remove streets and parks from the search results:" - "notInstanceOf": ["Q79007","Q22698"] + "notInstanceOf": ["Q79007","Q22698"] } - + ] } \`\`\` @@ -477,7 +477,7 @@ class OpeningHoursTextField extends TextFieldDef { } class UrlTextfieldDef extends TextFieldDef { - inputmode: "url" + declare inputmode: "url" constructor() { super( @@ -582,8 +582,7 @@ class StringTextField extends TextFieldDef { } class TextTextField extends TextFieldDef { - inputmode: "text" - + declare inputmode: "text" constructor() { super("text", "A longer piece of text") }