OffloadTask
이 콘텐츠는 아직 번역되지 않았습니다.
OffloadTask<
TArgs,TResult> =object
Defined in: src/worker/OffloadTask.ts:13
A named export of a module, typed with the arguments it takes and the result it returns.
Type Parameters
Section titled “Type Parameters”TArgs extends readonly unknown[] = readonly unknown[]
TResult
Section titled “TResult”TResult = unknown
Properties
Section titled “Properties”__types?
Section titled “__types?”
readonlyoptional__types?:object
Defined in: src/worker/OffloadTask.ts:19
Carries the type parameters through inference; never set. A property, not a function, so the task stays covariant in both.
readonlyargs:TArgs
result
Section titled “result”
readonlyresult:TResult
exportName
Section titled “exportName”
readonlyexportName:string
Defined in: src/worker/OffloadTask.ts:17
readonlykind:"offload-task"
Defined in: src/worker/OffloadTask.ts:14
module
Section titled “module”
readonlymodule:string
Defined in: src/worker/OffloadTask.ts:16
href of the module — absolute, because the worker resolves nothing relative to the caller.
