Type Alias: WireValue
ts
type WireValue =
| {
enc: "raw";
transfer?: unknown[];
v: unknown;
}
| {
enc: "nhtio";
v: string;
};Defined in: src/batteries/isolation/protocol.ts:29
A single argument/result value as it crosses the wire — the codec's (codec.ts) output shape. enc: 'raw' ships the value (mostly) untouched; enc: 'nhtio' ships an @nhtio/encoder-encoded string (or a BYO-codec-encoded string). transfer is a pass-through marker WP2's browser transport unwraps into a postMessage transfer list; node transports ignore it.