@whisklabs/grpc
Version:
gRPC generator and http library for typescript
36 lines • 1.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OPTION_MESSAGE_REQUIRED = exports.OPTION_MESSAGES_REQUIRED = exports.GOOGLE_WRAPPERS = exports.TYPES = void 0;
exports.TYPES = {
double: 'number', // bigint?
float: 'number',
int32: 'number',
int64: 'number',
uint32: 'number',
uint64: 'number',
sint32: 'number',
sint64: 'number',
fixed32: 'number',
fixed64: 'number',
sfixed32: 'number',
sfixed64: 'number',
enum: 'number',
bool: 'boolean',
// eslint-disable-next-line id-blacklist
string: 'string',
bytes: 'Uint8Array',
};
exports.GOOGLE_WRAPPERS = {
'google.protobuf.DoubleValue': 'double',
'google.protobuf.FloatValue': 'float',
'google.protobuf.Int64Value': 'int64',
'google.protobuf.UInt64Value': 'uint64',
'google.protobuf.Int32Value': 'int32',
'google.protobuf.UInt32Value': 'uint32',
'google.protobuf.BoolValue': 'bool',
'google.protobuf.StringValue': 'string',
'google.protobuf.BytesValue': 'bytes',
};
exports.OPTION_MESSAGES_REQUIRED = 'messages_required';
exports.OPTION_MESSAGE_REQUIRED = 'message_required';
//# sourceMappingURL=constants.js.map