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?
optionaldefaultValue?:T
Defined in: pubsub/protobuf-topic.ts:19
messageType?
optionalmessageType?:Type
Defined in: pubsub/protobuf-topic.ts:26
Prebuilt protobufjs Type. Safe in the browser.
protoFilePath?
optionalprotoFilePath?:string
Defined in: pubsub/protobuf-topic.ts:22
Path to a .proto file. Node.js only (uses the filesystem).
protoSource?
optionalprotoSource?:string
Defined in: pubsub/protobuf-topic.ts:24
Contents of a .proto file. Parsed in-memory; safe in the browser.
validator?
optionalvalidator?:ZodType<T,unknown,$ZodTypeInternals<T,unknown>>
Defined in: pubsub/protobuf-topic.ts:20