up to speed with event modules

This commit is contained in:
Jacob Nguyen
2024-05-15 14:59:24 -05:00
parent 16a84e85d1
commit 0d82658fc5
9 changed files with 71 additions and 50 deletions

View File

@@ -73,9 +73,9 @@ export function handleError<C>(crashHandler: ErrorHandling, emitter: Emitter, lo
//// Temporary until i get rxjs operators working on ts-results-es
export const filterTap = <K, R>(onErr: (e: R) => void): OperatorFunction<Result<K, R>, K> =>
concatMap(result => {
if(result.isOk()) {
return of(result.value)
}
onErr(result.error);
return EMPTY
if(result.isOk()) {
return of(result.value)
}
onErr(result.error);
return EMPTY;
})