objection
Advanced tools
Comparing version 3.0.0-alpha.2 to 3.0.0-alpha.3
{ | ||
"name": "objection", | ||
"version": "3.0.0-alpha.2", | ||
"version": "3.0.0-alpha.3", | ||
"description": "An SQL-friendly ORM for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/objection.js", |
@@ -801,3 +801,9 @@ /// <reference types="node" /> | ||
export class QueryBuilder<M extends Model, R = M[]> extends Promise<R> { | ||
export interface CatchablePromiseLike<R> extends PromiseLike<R> { | ||
catch<FR = never>( | ||
onrejected?: ((reason: any) => FR | PromiseLike<FR>) | undefined | null | ||
): Promise<R | FR>; | ||
} | ||
export class QueryBuilder<M extends Model, R = M[]> implements CatchablePromiseLike<R> { | ||
static forClass: ForClassMethod; | ||
@@ -1162,4 +1168,15 @@ | ||
PageQueryBuilderType: QueryBuilder<M, Page<M>>; | ||
then<R1 = R, R2 = never>( | ||
onfulfilled?: ((value: R) => R1 | PromiseLike<R1>) | undefined | null, | ||
onrejected?: ((reason: any) => R2 | PromiseLike<R2>) | undefined | null | ||
): Promise<R1 | R2>; | ||
catch<FR = never>( | ||
onrejected?: ((reason: any) => FR | PromiseLike<FR>) | undefined | null | ||
): Promise<R | FR>; | ||
} | ||
type X<T> = Promise<T>; | ||
interface FetchGraphOptions { | ||
@@ -1166,0 +1183,0 @@ transaction?: TransactionOrKnex; |
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
649752
20144