We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3157e8 commit 79fec82Copy full SHA for 79fec82
src/shared/domain/ICRUDRepoPort.ts
@@ -15,9 +15,9 @@
15
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
*/
17
export interface CRUDRepoPort<Aggregate> {
18
- getAll(): Aggregate[];
19
- getById(aggregateRootId: string): Aggregate;
20
- save(aggregateRootId: Aggregate): void;
21
- update(aggregate: Aggregate): void;
22
- delete(aggregateRootId: string): void;
+ getAll(): Promise<Aggregate[]>;
+ getById(aggregateRootId: string): Promise<Aggregate>;
+ save(aggregate: Aggregate): Promise<void>;
+ update(aggregate: Aggregate): Promise<void>;
+ delete(aggregateRootId: string): Promise<void>;
23
}
0 commit comments