@squidcloud/client 1.0.239 → 1.0.241
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -77,7 +77,7 @@ export declare class JoinQueryBuilder<Aliases extends Record<Alias, Alias[]>, Re
|
|
|
77
77
|
* @param asc Whether to sort in ascending order. Defaults to true.
|
|
78
78
|
* @returns The query builder
|
|
79
79
|
*/
|
|
80
|
-
sortBy(fieldName: keyof ReturnType[RootAlias] & FieldName, asc?: boolean): this;
|
|
80
|
+
sortBy(fieldName: (keyof ReturnType[RootAlias] & FieldName) | string, asc?: boolean): this;
|
|
81
81
|
/**
|
|
82
82
|
* Joins this query with another join query and return a new query builder that can be used to query the joined
|
|
83
83
|
* documents.
|
|
@@ -140,7 +140,7 @@ export declare abstract class BaseQueryBuilder<MyDocType extends DocumentData> {
|
|
|
140
140
|
* @param asc Whether to sort in ascending order. Defaults to true.
|
|
141
141
|
* @returns The query builder.
|
|
142
142
|
*/
|
|
143
|
-
abstract sortBy(fieldName: keyof MyDocType & FieldName, asc?: boolean): this;
|
|
143
|
+
abstract sortBy(fieldName: (keyof MyDocType & FieldName) | string, asc?: boolean): this;
|
|
144
144
|
}
|
|
145
145
|
/** A query builder that can be used to build a query that returns a list of documents. */
|
|
146
146
|
export declare class QueryBuilder<DocumentType extends DocumentData> extends BaseQueryBuilder<DocumentType> implements SnapshotEmitter<DocumentReference<DocumentType>>, HasDereference {
|
|
@@ -159,7 +159,7 @@ export declare class QueryBuilder<DocumentType extends DocumentData> extends Bas
|
|
|
159
159
|
getLimit(): number;
|
|
160
160
|
limitBy(limit: number, ...fields: FieldName[]): this;
|
|
161
161
|
/** @inheritDoc */
|
|
162
|
-
sortBy(fieldName: keyof DocumentType & FieldName, asc?: boolean): this;
|
|
162
|
+
sortBy(fieldName: (keyof DocumentType & FieldName) | string, asc?: boolean): this;
|
|
163
163
|
private mergeConditions;
|
|
164
164
|
getSortOrder(): FieldSort<DocumentType>[];
|
|
165
165
|
/**
|