Skip to content

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

Interface: ProtobufTopicOptions<T>

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

Options for creating a protobuf topic.

Type Parameters

T

T extends object

Properties

defaultValue?

optional defaultValue?: T

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


messageType?

optional messageType?: Type

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

Prebuilt protobufjs Type. Safe in the browser.


protoFilePath?

optional protoFilePath?: string

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

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


protoSource?

optional protoSource?: string

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

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:20

Released under the MIT License.