From 917ab0a79e788faf5df30a89503b510e43d4dd28 Mon Sep 17 00:00:00 2001 From: "Fabien \"egg\" O'Carroll" Date: Thu, 1 Jun 2023 00:12:33 -0400 Subject: [PATCH] Added CollectionRepository This defines the interface required by the CollectionsService --- ghost/collections/src/CollectionRepository.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ghost/collections/src/CollectionRepository.ts diff --git a/ghost/collections/src/CollectionRepository.ts b/ghost/collections/src/CollectionRepository.ts new file mode 100644 index 0000000000..feb46b8d3a --- /dev/null +++ b/ghost/collections/src/CollectionRepository.ts @@ -0,0 +1,6 @@ +import {Collection} from './Collection'; +export interface CollectionRepository { + save(collection: Collection): Promise + getById(id: string): Promise + getAll(options: any): Promise +}