Fixed TypeScript warnings

This commit is contained in:
squidfunk 2020-04-26 19:02:32 +02:00
parent 0145f6d278
commit 6cf14bed10

View File

@ -91,8 +91,8 @@ export function watchWorker<T extends WorkerMessage>(
const rx$ = fromEventPattern<MessageEvent>(next => const rx$ = fromEventPattern<MessageEvent>(next =>
worker.addEventListener("message", next) worker.addEventListener("message", next)
) )
.pipe( .pipe<T>(
pluck<MessageEvent, T>("data") pluck("data")
) )
/* Send and receive messages, return hot observable */ /* Send and receive messages, return hot observable */