forked from MapComplete/MapComplete
Mark old input elements as deprecated, remove some unused input elements
This commit is contained in:
parent
6366d82e6c
commit
beb86919a8
11 changed files with 33 additions and 131 deletions
|
@ -1,11 +1,17 @@
|
|||
import { Store, UIEventSource } from "../../Logic/UIEventSource"
|
||||
import BaseUIElement from "../BaseUIElement"
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
export interface ReadonlyInputElement<T> extends BaseUIElement {
|
||||
GetValue(): Store<T>
|
||||
IsValid(t: T): boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
export abstract class InputElement<T> extends BaseUIElement implements ReadonlyInputElement<any> {
|
||||
abstract GetValue(): UIEventSource<T>
|
||||
abstract IsValid(t: T): boolean
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue