mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 09:20:52 +01:00
Fixed TypeScript warnings
This commit is contained in:
parent
0145f6d278
commit
6cf14bed10
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user