Skip to content

ntcore-ts / @ntcore-ts/client / ProtobufTopicOptions

Interface: ProtobufTopicOptions<T> ​

Defined in: pubsub/protobuf-topic.ts:19

Options for creating a protobuf topic.

Type Parameters ​

T ​

T extends object

Properties ​

defaultValue? ​

optional defaultValue?: T

Defined in: pubsub/protobuf-topic.ts:20


messageType? ​

optional messageType?: Type

Defined in: pubsub/protobuf-topic.ts:27

Prebuilt protobufjs Type. Safe in the browser.


protoFilePath? ​

optional protoFilePath?: string

Defined in: pubsub/protobuf-topic.ts:23

Path to a .proto file. Node.js only (uses the filesystem).


protoSource? ​

optional protoSource?: string

Defined in: pubsub/protobuf-topic.ts:25

Contents of a .proto file. Parsed in-memory; safe in the browser.


validator? ​

optional validator?: ZodType<T, unknown, $ZodTypeInternals<T, unknown>>

Defined in: pubsub/protobuf-topic.ts:21

Released under the MIT License.