@@ -128,26 +128,10 @@ const zeroLengthTypesSupported = new Set([
128
128
dataTypes . blob
129
129
] ) ;
130
130
131
- /**
132
- * @typedef {(singleTypeNames[keyof singleTypeNames] | types.dataTypes.duration | types.dataTypes.text) } SingleTypeCodes
133
- * @typedef {('point' | 'polygon' | 'duration' | 'lineString' | 'dateRange') } CustomSimpleTypeCodes
134
- * @typedef {(customTypeNames[CustomSimpleTypeCodes]) | CustomSimpleTypeCodes | 'empty' } CustomSimpleTypeNames
135
- * @typedef {{code : SingleTypeCodes, info?: null, options? : {frozen?:boolean, reversed?:boolean} } } SingleColumnInfo
136
- * @typedef {{code : (types.dataTypes.custom), info : CustomSimpleTypeNames, options? : {frozen?:boolean, reversed?:boolean}} } CustomSimpleColumnInfo
137
- * @typedef {{code : (types.dataTypes.map), info : [ColumnInfo, ColumnInfo], options?: {frozen?: Boolean, reversed?: Boolean}} } MapColumnInfo
138
- * @typedef {{code : (types.dataTypes.tuple), info : Array<ColumnInfo>, options?: {frozen?: Boolean, reversed?: Boolean}} } TupleColumnInfo
139
- * @typedef {{code : (types.dataTypes.tuple | types.dataTypes.list)} } TupleListColumnInfoWithoutSubtype TODO: guessDataType can return null on tuple/list info, why?
140
- * @typedef {{code : (types.dataTypes.list | types.dataTypes.set), info : ColumnInfo, options?: {frozen?: Boolean, reversed?: Boolean}} } ListSetColumnInfo
141
- * @typedef {{code : (types.dataTypes.udt), info : {name : string, fields : Array<{name : string, type : ColumnInfo}>}, options? : {frozen?: Boolean, reversed?: Boolean}} } UdtColumnInfo
142
- * @typedef {{code : (types.dataTypes.custom), customTypeName : ('vector'), info : [ColumnInfo, number], options? : {frozen?:boolean, reversed?:boolean}} } VectorColumnInfo
143
- * @typedef {{code : (types.dataTypes.custom), info : string, options? : {frozen?:boolean, reversed?:boolean}} } OtherCustomColumnInfo
144
- * @typedef {SingleColumnInfo | CustomSimpleColumnInfo | MapColumnInfo | TupleColumnInfo | ListSetColumnInfo | VectorColumnInfo | OtherCustomColumnInfo | UdtColumnInfo | TupleListColumnInfoWithoutSubtype } ColumnInfo If this is a simple type, info is null; if this is a collection type with a simple subtype, info is a string, if this is a nested collection type, info is a ColumnInfo object
145
- */
146
131
147
132
/**
148
133
* Serializes and deserializes to and from a CQL type and a Javascript Type.
149
134
* @param {Number } protocolVersion
150
- * @param {import('./client.js').ClientOptions } options
151
135
* @constructor
152
136
*/
153
137
function Encoder ( protocolVersion , options ) {
@@ -212,7 +196,6 @@ function defineInstanceMembers() {
212
196
*
213
197
* @param {Buffer } bytes
214
198
* @param {OtherCustomColumnInfo | VectorColumnInfo } columnInfo
215
- * @returns
216
199
*/
217
200
this . decodeCustom = function ( bytes , columnInfo ) {
218
201
@@ -750,7 +733,6 @@ function defineInstanceMembers() {
750
733
*
751
734
* @param {any } value
752
735
* @param {OtherCustomColumnInfo | VectorColumnInfo } columnInfo
753
- * @returns
754
736
*/
755
737
this . encodeCustom = function ( value , columnInfo ) {
756
738
@@ -908,7 +890,6 @@ function defineInstanceMembers() {
908
890
*
909
891
* @param {any } value
910
892
* @param {UdtColumnInfo } columnInfo
911
- * @returns
912
893
*/
913
894
this . encodeUdt = function ( value , columnInfo ) {
914
895
const udtInfo = columnInfo . info ;
@@ -939,7 +920,6 @@ function defineInstanceMembers() {
939
920
*
940
921
* @param {any } value
941
922
* @param {TupleColumnInfo } columnInfo
942
- * @returns
943
923
*/
944
924
this . encodeTuple = function ( value , columnInfo ) {
945
925
const tupleInfo = columnInfo . info ;
@@ -1105,7 +1085,6 @@ function defineInstanceMembers() {
1105
1085
/**
1106
1086
* If not provided, it uses the array of buffers or the parameters and hints to build the routingKey
1107
1087
* @param {Array } params
1108
- * @param {import('..').ExecutionOptions } execOptions
1109
1088
* @param [keys] parameter keys and positions in the params array
1110
1089
* @throws TypeError
1111
1090
* @internal
0 commit comments