X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futility-types.ts;h=2403b8a257b0377e441a4dc2568b49571be4cdc2;hb=deb85c12b77faf6974551cefcd9676e62a392086;hp=d680fa16ddc7e4748a41f2e878def0384eb2e305;hpb=eb3b4c1592abc3f91acfe98c236a02ca994febff;p=poolifier.git diff --git a/src/utility-types.ts b/src/utility-types.ts index d680fa16..2403b8a2 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -3,28 +3,10 @@ import type { MessagePort } from 'worker_threads' import type { KillBehavior } from './worker/worker-options' /** - * Make all properties in T non-readonly + * Make all properties in T non-readonly. */ export type Draft = { -readonly [P in keyof T]?: T[P] } -/** - * Serializable primitive JSON value. - */ -export type JSONPrimitive = number | boolean | string | null -/** - * Serializable JSON value. - */ -// eslint-disable-next-line no-use-before-define -export type JSONValue = JSONPrimitive | JSONArray | JSONObject -/** - * Serializable JSON object. - */ -export type JSONObject = { [k: string]: JSONValue } -/** - * Serializable JSON array. - */ -export type JSONArray = Array - /** * Message object that is passed between worker and main worker. */