pqb 0.36.12 → 0.36.13

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.
package/dist/index.d.ts CHANGED
@@ -6519,7 +6519,7 @@ type OrderArgKey<T extends OrderArgSelf> = {
6519
6519
  type GroupArgs<T extends PickQueryResult> = ({
6520
6520
  [K in keyof T['result']]: T['result'][K]['dataType'] extends 'array' | 'object' | 'runtimeComputed' ? never : K;
6521
6521
  }[keyof T['result']] | Expression)[];
6522
- interface QueryHelper<T extends PickQueryMetaShape, Args extends unknown[], Result> {
6522
+ interface QueryHelper<T extends PickQueryMetaShape, Args extends any[], Result> {
6523
6523
  <Q extends {
6524
6524
  returnType: QueryReturnType;
6525
6525
  meta: QueryMetaBase & {
@@ -6531,7 +6531,7 @@ interface QueryHelper<T extends PickQueryMetaShape, Args extends unknown[], Resu
6531
6531
  }>(q: Q, ...args: Args): Result extends Query ? MergeQuery<Q, Result> : Result;
6532
6532
  result: Result;
6533
6533
  }
6534
- type QueryHelperResult<T extends QueryHelper<Query, unknown[], unknown>> = T['result'];
6534
+ type QueryHelperResult<T extends QueryHelper<Query, any[], unknown>> = T['result'];
6535
6535
  type NarrowTypeResult<T extends PickQueryMetaResultReturnType, Narrow> = {
6536
6536
  [K in keyof T['result']]: K extends keyof Narrow ? {
6537
6537
  [P in keyof T['result'][K]]: P extends 'outputType' ? Narrow[K] extends T['result'][K]['outputType'] ? Narrow[K] : `narrowType() error: passed type does not exist in '${K & string}'s type union` : T['result'][K][P];
@@ -6673,7 +6673,7 @@ declare class QueryMethods<ColumnTypes> {
6673
6673
  * Finds a single record with a given SQL, throws {@link NotFoundError} if not found:
6674
6674
  *
6675
6675
  * ```ts
6676
- * await db.user.find`
6676
+ * await db.user.findBySql`
6677
6677
  * age = ${age} AND
6678
6678
  * name = ${name}
6679
6679
  * `;
@@ -6698,7 +6698,7 @@ declare class QueryMethods<ColumnTypes> {
6698
6698
  * Returns `undefined` when not found.
6699
6699
  *
6700
6700
  * ```ts
6701
- * await db.user.find`
6701
+ * await db.user.findBySqlOptional`
6702
6702
  * age = ${age} AND
6703
6703
  * name = ${name}
6704
6704
  * `;
package/dist/index.js CHANGED
@@ -11692,7 +11692,7 @@ class QueryMethods {
11692
11692
  * Finds a single record with a given SQL, throws {@link NotFoundError} if not found:
11693
11693
  *
11694
11694
  * ```ts
11695
- * await db.user.find`
11695
+ * await db.user.findBySql`
11696
11696
  * age = ${age} AND
11697
11697
  * name = ${name}
11698
11698
  * `;
@@ -11722,7 +11722,7 @@ class QueryMethods {
11722
11722
  * Returns `undefined` when not found.
11723
11723
  *
11724
11724
  * ```ts
11725
- * await db.user.find`
11725
+ * await db.user.findBySqlOptional`
11726
11726
  * age = ${age} AND
11727
11727
  * name = ${name}
11728
11728
  * `;