fix sdk build failing on tsc error

This commit is contained in:
Bruno Windels 2022-10-14 20:13:23 +02:00
parent d37965ef91
commit 2d526bc088

View File

@ -64,8 +64,8 @@ export abstract class BaseObservableMap<K, V> extends BaseObservable<IMapObserve
} }
} }
join(...otherMaps: Array<typeof this>): JoinedMap<K, V> { join<E extends BaseObservableMap<K, V>>(...otherMaps: Array<E>): JoinedMap<K, V> {
return new JoinedMap([this].concat(otherMaps)); return new JoinedMap([this as BaseObservableMap<K, V>].concat(otherMaps));
} }
mapValues<MappedV>(mapper: Mapper<V, MappedV>, updater?: Updater<V, MappedV>): MappedMap<K, V, MappedV> { mapValues<MappedV>(mapper: Mapper<V, MappedV>, updater?: Updater<V, MappedV>): MappedMap<K, V, MappedV> {