More work on searchable mappings

This commit is contained in:
Pieter Vander Vennet 2022-07-10 03:58:07 +02:00
parent dd992a1e0d
commit f9ce1e4db4
9 changed files with 398 additions and 227 deletions

View file

@ -1,5 +1,5 @@
import {InputElement} from "./InputElement";
import {UIEventSource} from "../../Logic/UIEventSource";
import {Store, UIEventSource} from "../../Logic/UIEventSource";
export default class InputElementMap<T, X> extends InputElement<X> {
@ -13,7 +13,7 @@ export default class InputElementMap<T, X> extends InputElement<X> {
isSame: (x0: X, x1: X) => boolean,
toX: (t: T) => X,
fromX: (x: X) => T,
extraSources: UIEventSource<any>[] = []
extraSources: Store<any>[] = []
) {
super();
this.isSame = isSame;