Skip to content

Commit 62ecd77

Browse files
suppoort other numeric types
1 parent 7a4664f commit 62ecd77

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/client-side-encryption/client_encryption.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,10 +968,15 @@ export interface ClientEncryptionRewrapManyDataKeyResult {
968968
* For double and decimal128, min/max/precision must all be set, or all be unset.
969969
*/
970970
export interface RangeOptions {
971+
/** min is the minimum value for the encrypted index. Required if precision is set. */
971972
min?: any;
973+
/** max is the minimum value for the encrypted index. Required if precision is set. */
972974
max?: any;
973-
sparsity?: Long;
974-
trimFactor?: Int32;
975+
/** sparsity may be used to tune performance. must be non-negative. When omitted, a default value is used. */
976+
sparsity?: Long | bigint | number;
977+
/** trimFactor may be used to tune performance. must be non-negative. When omitted, a default value is used. */
978+
trimFactor?: Int32 | bigint | number;
979+
/* precision determines the number of significant digits after the decimal point. May only be set for double or decimal128. */
975980
precision?: number;
976981
}
977982

0 commit comments

Comments
 (0)