Add declare-keywords to redeclare types

This commit is contained in:
Pieter Vander Vennet 2023-01-17 02:50:13 +01:00
parent 60583aa658
commit a3234686fe
2 changed files with 6 additions and 7 deletions

View file

@ -31,7 +31,7 @@ export default class Toggle extends VariableUiElement {
* Same as `Toggle`, but will swap on click * Same as `Toggle`, but will swap on click
*/ */
export class ClickableToggle extends Toggle { export class ClickableToggle extends Toggle {
public readonly isEnabled: UIEventSource<boolean> public declare readonly isEnabled: UIEventSource<boolean>
constructor( constructor(
showEnabled: string | BaseUIElement, showEnabled: string | BaseUIElement,

View file

@ -297,11 +297,11 @@ class WikidataTextField extends TextFieldDef {
], ],
"nl": ["straat","plein","pad","weg",laan"] "nl": ["straat","plein","pad","weg",laan"]
}, },
"#": "Remove streets and parks from the search results:" "#": "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 { class UrlTextfieldDef extends TextFieldDef {
inputmode: "url" declare inputmode: "url"
constructor() { constructor() {
super( super(
@ -582,8 +582,7 @@ class StringTextField extends TextFieldDef {
} }
class TextTextField extends TextFieldDef { class TextTextField extends TextFieldDef {
inputmode: "text" declare inputmode: "text"
constructor() { constructor() {
super("text", "A longer piece of text") super("text", "A longer piece of text")
} }