Skip to content

procxy / Procxiable

Type Alias: Procxiable<Mode> ​

ts
type Procxiable<Mode> = Mode extends "advanced" ? V8Serializable : Jsonifiable;

Defined in: src/types/procxy.ts:20

The serializable type constraint for a given IPC mode.

Type Parameters ​

Type ParameterDescription
Mode extends SerializationModeThe active serialization mode

Remarks ​

  • 'json' mode: resolves to Jsonifiable (type-fest) — plain objects, arrays, primitives
  • 'advanced' mode: resolves to V8Serializable — adds Buffer, TypedArray, Map, Set, BigInt, Date, RegExp, Error

Used as the upper-bound constraint for method parameter and return value types when computing which methods appear on Procxy.

Released under the MIT License.