diff --git a/src/observable/list/BaseMappedList.ts b/src/observable/list/BaseMappedList.ts index f339d113..f2203d34 100644 --- a/src/observable/list/BaseMappedList.ts +++ b/src/observable/list/BaseMappedList.ts @@ -26,10 +26,10 @@ export class BaseMappedList extends BaseObservableList { protected _sourceUnsubscribe: (() => void) | null = null; _mapper: Mapper; _updater: Updater; - _removeCallback: ((value: T) => void) | null; + _removeCallback?: (value: T) => void; _mappedValues: T[] | null = null; - constructor(sourceList: BaseObservableList, mapper: Mapper, updater: Updater, removeCallback: ((value: T) => void) | null = null) { + constructor(sourceList: BaseObservableList, mapper: Mapper, updater: Updater, removeCallback?: (value: T) => void) { super(); this._sourceList = sourceList; this._mapper = mapper;