pqb 0.3.7 → 0.3.8
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 +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/queryMethods/then.test.ts +10 -4
- package/src/queryMethods/then.ts +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -551,7 +551,7 @@ declare type ThenResult<Res> = (resolve?: (value: Res) => any, reject?: (error:
|
|
|
551
551
|
declare const queryMethodByReturnType: Record<QueryReturnType, 'query' | 'arrays'>;
|
|
552
552
|
declare class Then {
|
|
553
553
|
then(this: Query, resolve?: (result: any) => any, reject?: (error: any) => any): Promise<any>;
|
|
554
|
-
catch<Result>(this:
|
|
554
|
+
catch<T extends Query, Result>(this: T, fn: (reason: any) => Result | PromiseLike<Result>): Promise<ReturnType<T['then']> | Result>;
|
|
555
555
|
}
|
|
556
556
|
declare const handleResult: CommonQueryData['handleResult'];
|
|
557
557
|
declare const parseResult: (q: Query, returnType: QueryReturnType | undefined, result: QueryResult) => unknown;
|