# PublishProperty

URL: https://www.caprid.com/docs/reference/typescript/caprid/relay/index/interfaces/publishproperty/

Defined in: [relay-sdks/ts/src/publish.ts:55](https://github.com/caprids/relay-sdks/blob/main/ts/src/publish.ts#L55)

One MOQT property (a key-value pair) on a registered track or a written object, encoded as
supplied. Invalid properties are a TypeError naming the property index. A byte value over 65535
bytes is a RangeError, and so is a list past its bound: on a track, more than 65525 encoded bytes
(the room SUBSCRIBE_OK leaves), more than 64 pairs, or a 0x0E above 255 or 0x22 other than 1 or 2;
on an object, more than 64 KiB encoded (the relay's limit). Both are raised before a track is
registered or a write starts.

## Properties

### type

```ts
type: number;
```

Defined in: [relay-sdks/ts/src/publish.ts:57](https://github.com/caprids/relay-sdks/blob/main/ts/src/publish.ts#L57)

Non-negative safe integer: even types encode an integer, odd types encode bytes.

***

### value

```ts
value: number | ArrayBufferView<ArrayBufferLike>;
```

Defined in: [relay-sdks/ts/src/publish.ts:59](https://github.com/caprids/relay-sdks/blob/main/ts/src/publish.ts#L59)

A non-negative safe integer for an even type; an `ArrayBufferView`, copied as its raw bytes, for an odd type.
