Interface FieldWrapper<T, U>

A field wrapper unwraps a message to a primitive value that is more ergonomic for use as a message field.

Note that this feature exists for google/protobuf/wrappers.proto and cannot be used to arbitrarily modify types in generated code.

interface FieldWrapper<T, U> {
    unwrapField(value): U;
    wrapField(value): T;
}

Type Parameters

Methods

  • Parameters

    • value: T

    Returns U

  • Parameters

    • value: U

    Returns T

Generated using TypeDoc