Skip to content

procxy / IsProcxiable

Type Alias: IsProcxiable<T, Mode>

ts
type IsProcxiable<T, Mode> = T extends Procxiable<Mode> | void | undefined | Function ? true : false;

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

Conditional type that resolves to true when T can cross the IPC boundary in the given mode.

Type Parameters

Type ParameterDescription
TThe type to check
Mode extends SerializationModeThe serialization mode

Remarks

Returns true for:

  • Any type assignable to Procxiable<Mode> (JSON-safe or V8-safe depending on mode)
  • void — async methods that return nothing are safe
  • undefined — optional parameters and absent return values
  • Function — reserved for future callback-proxy support (currently validated at runtime)

Used internally to filter which methods appear on the Procxy type.

Released under the MIT License.