Type alias PartialMessage<T>

PartialMessage<T>: {
    [P in keyof T as T[P] extends Function
        ? never
        : P]?: PartialField<T[P]>
}

PartialMessage constructs a type from a message. The resulting type only contains the protobuf field members of the message, and all of them are optional.

Note that the optionality of the fields is the only difference between PartialMessage and PlainMessage.

PartialMessage is similar to the built-in type Partial, but recursive, and respects oneof groups.

Type Parameters

Generated using TypeDoc