Skip to content

WorkerMethodResult<TApi, TMethod>

The resolved result type of a worker method.

Import:

import type { WorkerMethodResult } from '@mnaoumov/obsidian-lib/components/worker-component';

Signature:

export type WorkerMethodResult<TApi extends WorkerApi<TApi>, TMethod extends WorkerMethod<TApi>>

Signature:

type WorkerMethodResult<TApi, TMethod> = Awaited<ReturnType<TApi[TMethod]>>

Type: Awaited<ReturnType<TApi[TMethod]>>


Links to this page: