hysteria-orm 10.6.0 → 10.6.1
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/lib/cli.js +1 -1
- package/lib/cli.js.map +1 -1
- package/lib/index.cjs +10 -10
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +6 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +10 -10
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -2682,6 +2682,9 @@ declare class QueryBuilder<T extends Model = any, S extends Record<string, any>
|
|
|
2682
2682
|
* @description Executes the query and retrieves multiple results.
|
|
2683
2683
|
*/
|
|
2684
2684
|
many(): Promise<S[]>;
|
|
2685
|
+
then<TResult1 = S[], TResult2 = never>(onfulfilled?: ((value: S[]) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
|
|
2686
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined): Promise<S[] | TResult>;
|
|
2687
|
+
finally(onfinally?: (() => void) | null | undefined): Promise<S[]>;
|
|
2685
2688
|
/**
|
|
2686
2689
|
* @description Executes the query and retrieves a single column from the results.
|
|
2687
2690
|
* @param key - The column to retrieve from the results, must be a Model Column
|
|
@@ -4539,6 +4542,9 @@ declare class ModelQueryBuilder<T extends Model, S extends Record<string, any> =
|
|
|
4539
4542
|
};
|
|
4540
4543
|
}): Promise<SelectedModel<T, S, R>>;
|
|
4541
4544
|
many(options?: ManyOptions): Promise<SelectedModel<T, S, R>[]>;
|
|
4545
|
+
then<TResult1 = SelectedModel<T, S, R>[], TResult2 = never>(onfulfilled?: ((value: SelectedModel<T, S, R>[]) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
|
|
4546
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined): Promise<SelectedModel<T, S, R>[] | TResult>;
|
|
4547
|
+
finally(onfinally?: (() => void) | null | undefined): Promise<SelectedModel<T, S, R>[]>;
|
|
4542
4548
|
chunk(chunkSize: number, options?: ManyOptions): AsyncGenerator<SelectedModel<T, S, R>[] | T[]>;
|
|
4543
4549
|
stream(options?: ManyOptions & StreamOptions): Promise<PassThrough & AsyncGenerator<SelectedModel<T, S, R> | T>>;
|
|
4544
4550
|
paginateWithCursor<K extends ModelKey<T>>(page: number, options?: PaginateWithCursorOptions<T, K>, cursor?: Cursor<T, K>): Promise<[CursorPaginatedData<T, S, R>, Cursor<T, K>]>;
|
package/lib/index.d.ts
CHANGED
|
@@ -2682,6 +2682,9 @@ declare class QueryBuilder<T extends Model = any, S extends Record<string, any>
|
|
|
2682
2682
|
* @description Executes the query and retrieves multiple results.
|
|
2683
2683
|
*/
|
|
2684
2684
|
many(): Promise<S[]>;
|
|
2685
|
+
then<TResult1 = S[], TResult2 = never>(onfulfilled?: ((value: S[]) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
|
|
2686
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined): Promise<S[] | TResult>;
|
|
2687
|
+
finally(onfinally?: (() => void) | null | undefined): Promise<S[]>;
|
|
2685
2688
|
/**
|
|
2686
2689
|
* @description Executes the query and retrieves a single column from the results.
|
|
2687
2690
|
* @param key - The column to retrieve from the results, must be a Model Column
|
|
@@ -4539,6 +4542,9 @@ declare class ModelQueryBuilder<T extends Model, S extends Record<string, any> =
|
|
|
4539
4542
|
};
|
|
4540
4543
|
}): Promise<SelectedModel<T, S, R>>;
|
|
4541
4544
|
many(options?: ManyOptions): Promise<SelectedModel<T, S, R>[]>;
|
|
4545
|
+
then<TResult1 = SelectedModel<T, S, R>[], TResult2 = never>(onfulfilled?: ((value: SelectedModel<T, S, R>[]) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
|
|
4546
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined): Promise<SelectedModel<T, S, R>[] | TResult>;
|
|
4547
|
+
finally(onfinally?: (() => void) | null | undefined): Promise<SelectedModel<T, S, R>[]>;
|
|
4542
4548
|
chunk(chunkSize: number, options?: ManyOptions): AsyncGenerator<SelectedModel<T, S, R>[] | T[]>;
|
|
4543
4549
|
stream(options?: ManyOptions & StreamOptions): Promise<PassThrough & AsyncGenerator<SelectedModel<T, S, R> | T>>;
|
|
4544
4550
|
paginateWithCursor<K extends ModelKey<T>>(page: number, options?: PaginateWithCursorOptions<T, K>, cursor?: Cursor<T, K>): Promise<[CursorPaginatedData<T, S, R>, Cursor<T, K>]>;
|