---
url: 'https://adk.nht.io/api/@nhtio/adk/batteries/type-aliases/WireValue.md'
description: >-
  A single argument/result value as it crosses the wire — the codec's
  (`codec.ts`) output shape.
---

# Type Alias: WireValue

```ts
type WireValue =
  | {
      enc: "raw";
      transfer?: unknown[];
      v: unknown;
    }
  | {
      enc: "nhtio";
      v: string;
    };
```

Defined in: [src/batteries/isolation/protocol.ts:29](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/protocol.ts#L29)

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.
