X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Futility-types.ts;h=685e5c4c606755bf801dd6c13d582d3657f8fe8e;hb=12ae3210477b0c54380db24470ff3b0e78926bd8;hp=544b4cd0a07e85f407a192466601167392167a41;hpb=50e66724ecb17b83dfb87b1128ca9674f9b14e03;p=poolifier.git diff --git a/src/utility-types.ts b/src/utility-types.ts index 544b4cd0..685e5c4c 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -10,6 +10,9 @@ export type Draft = { -readonly [P in keyof T]?: T[P] } /** * Message object that is passed between worker and main worker. + * + * @typeParam Data - Type of data sent to the worker. This can only be serializable data. + * @typeParam MainWorker - Type of main worker. */ export interface MessageValue< Data = unknown, @@ -49,6 +52,7 @@ export interface MessageValue< * * @typeParam Worker - Type of worker. * @typeParam Response - Type of execution response. This can only be serializable data. + * @internal */ export interface PromiseResponseWrapper< Worker extends IWorker,