|
5 | 5 | */
|
6 | 6 |
|
7 | 7 | export declare class StorageSpec<T, K> {
|
8 |
| - /** |
9 |
| - * Build a new storage driver |
10 |
| - * |
11 |
| - * @param {...any[]} props |
12 |
| - * @returns Promise<StorageSpec> |
13 |
| - */ |
14 |
| - |
15 |
| - public static build<T, K>(...props: any[]): Promise<StorageSpec<T, K>>; |
16 |
| - |
17 |
| - /** |
18 |
| - * Create a new entry in the storage |
19 |
| - * |
20 |
| - * @param body |
21 |
| - * @returns Promise<K> |
22 |
| - */ |
23 |
| - |
24 |
| - public create(body: T): Promise<K>; |
25 |
| - |
26 |
| - /** |
27 |
| - * Find one entry in the storage using partial of K |
28 |
| - * |
29 |
| - * @param {Partial<K>} options |
30 |
| - * @returns Promise<K> |
31 |
| - */ |
32 |
| - |
33 |
| - public findOne(options: Partial<K>): Promise<K>; |
34 |
| - |
35 |
| - /** |
36 |
| - * Find many entities in the storage using partial of K |
37 |
| - * |
38 |
| - * @param {Partial<K>} options |
39 |
| - * @returns Promise<K[]> |
40 |
| - */ |
41 |
| - |
42 |
| - public findMany(options: Partial<K>): Promise<K[]>; |
| 8 | + /** |
| 9 | + * Build a new storage driver |
| 10 | + * |
| 11 | + * @param {...any[]} props |
| 12 | + * @returns Promise<StorageSpec> |
| 13 | + */ |
| 14 | + |
| 15 | + // biome-ignore lint: lint/suspicious/noExplicitAny |
| 16 | + public static build<T, K>(...props: any[]): Promise<StorageSpec<T, K>>; |
| 17 | + |
| 18 | + /** |
| 19 | + * Create a new entry in the storage |
| 20 | + * |
| 21 | + * @param body |
| 22 | + * @returns Promise<K> |
| 23 | + */ |
| 24 | + |
| 25 | + public create(body: T): Promise<K>; |
| 26 | + |
| 27 | + /** |
| 28 | + * Find one entry in the storage using partial of K |
| 29 | + * |
| 30 | + * @param {Partial<K>} options |
| 31 | + * @returns Promise<K> |
| 32 | + */ |
| 33 | + |
| 34 | + public findOne(options: Partial<K>): Promise<K>; |
| 35 | + |
| 36 | + /** |
| 37 | + * Find many entities in the storage using partial of K |
| 38 | + * |
| 39 | + * @param {Partial<K>} options |
| 40 | + * @returns Promise<K[]> |
| 41 | + */ |
| 42 | + |
| 43 | + public findMany(options: Partial<K>): Promise<K[]>; |
43 | 44 | }
|
0 commit comments