Mark old input elements as deprecated, remove some unused input elements

This commit is contained in:
Pieter Vander Vennet 2023-05-08 23:53:52 +02:00
parent 6366d82e6c
commit beb86919a8
11 changed files with 33 additions and 131 deletions

View file

@ -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