Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions infrastructure/w3id/src/logs/storage/storage-spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* SPECIFICATION
*
* Baseline Storage Specification, used for storing and managing logs
*/

export declare class StorageSpec<T, K> {
/**
* Build a new storage driver
*
* @param {...any[]} props
* @returns Promise<StorageSpec>
*/

public static build<T, K>(...props: any[]): Promise<StorageSpec<T, K>>;

/**
* Create a new entry in the storage
*
* @param body
* @returns Promise<K>
*/

public create(body: T): Promise<K>;

/**
* Find one entry in the storage using partial of K
*
* @param {Partial<K>} options
* @returns Promise<K>
*/

public findOne(options: Partial<K>): Promise<K>;

/**
* Find many entities in the storage using partial of K
*
* @param {Partial<K>} options
* @returns Promise<K[]>
*/

public findMany(options: Partial<K>): Promise<K[]>;
}
Empty file.
Loading