12 lines
		
	
	
	
		
			410 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			410 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { Store, UIEventSource } from "../../Logic/UIEventSource"
 | |
| import BaseUIElement from "../BaseUIElement"
 | |
| 
 | |
| export interface ReadonlyInputElement<T> extends BaseUIElement {
 | |
|     GetValue(): Store<T>
 | |
|     IsValid(t: T): boolean
 | |
| }
 | |
| 
 | |
| export abstract class InputElement<T> extends BaseUIElement implements ReadonlyInputElement<any> {
 | |
|     abstract GetValue(): UIEventSource<T>
 | |
|     abstract IsValid(t: T): boolean
 | |
| }
 |