1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-01 02:27:17 +01:00

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 =>
worker.addEventListener("message", next)
)
.pipe(
pluck<MessageEvent, T>("data")
.pipe<T>(
pluck("data")
)
/* Send and receive messages, return hot observable */