pg-proto-parser
Version:
The LaunchQL Proto parser
28 lines (27 loc) • 638 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPrimitiveType = void 0;
const isPrimitiveType = (type) => {
switch (type) {
case 'string':
case 'double':
case 'float':
case 'int32':
case 'uint32':
case 'sint32':
case 'fixed32':
case 'sfixed32':
case 'int64':
case 'uint64':
case 'sint64':
case 'fixed64':
case 'sfixed64':
case 'bytes':
case 'bool':
return true;
default:
return false;
}
;
};
exports.isPrimitiveType = isPrimitiveType;