Omits indexName, filter, and skCondition from QueryOptions.
The filter property is re-declared using TypedFilterParams for compile-time
key validation. The skCondition property is omitted here and re-added at the query
overload level with a const SK generic parameter for literal type inference and
return type narrowing.
The query overload also re-declares filter with a const F generic parameter to
enable literal type inference for return type narrowing. Both declarations are required:
this one provides excess property checking on object literals, while the generic
provides literal type capture for return type inference.
Options for querying without an index.
Omits
indexName,filter, andskConditionfrom QueryOptions. Thefilterproperty is re-declared using TypedFilterParams for compile-time key validation. TheskConditionproperty is omitted here and re-added at the query overload level with aconst SKgeneric parameter for literal type inference and return type narrowing.The query overload also re-declares
filterwith aconst Fgeneric parameter to enable literal type inference for return type narrowing. Both declarations are required: this one provides excess property checking on object literals, while the generic provides literal type capture for return type inference.