MCPcopy Index your code
hub / github.com/andywer/threads.js / isJobErrorMessage

Function isJobErrorMessage

src/master/invocation-proxy.ts:35–35  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

33const dedupe = <T>(array: T[]): T[] => Array.from(new Set(array))
34
35const isJobErrorMessage = (data: any): data is WorkerJobErrorMessage => data && data.type === WorkerMessageType.error
36const isJobResultMessage = (data: any): data is WorkerJobResultMessage => data && data.type === WorkerMessageType.result
37const isJobStartMessage = (data: any): data is WorkerJobStartMessage => data && data.type === WorkerMessageType.running
38

Callers 1

createObservableForJobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected