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 Parameter | Description |
|---|---|
T | The type to check |
Mode extends SerializationMode | The 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 safeundefined— optional parameters and absent return valuesFunction— reserved for future callback-proxy support (currently validated at runtime)
Used internally to filter which methods appear on the Procxy type.