forked from MapComplete/MapComplete
Add declare-keywords to redeclare types
This commit is contained in:
parent
60583aa658
commit
a3234686fe
2 changed files with 6 additions and 7 deletions
|
@ -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<boolean>
|
||||
public declare readonly isEnabled: UIEventSource<boolean>
|
||||
|
||||
constructor(
|
||||
showEnabled: string | BaseUIElement,
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue