@squidcloud/client 1.0.240 → 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.
@@ -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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.240",
3
+ "version": "1.0.241",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/typescript-client/src/index.d.ts",