0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Added CollectionRepository

This defines the interface required by the CollectionsService
This commit is contained in:
Fabien "egg" O'Carroll 2023-06-01 00:12:33 -04:00 committed by naz
parent 5282c4a72b
commit 917ab0a79e

View file

@ -0,0 +1,6 @@
import {Collection} from './Collection';
export interface CollectionRepository {
save(collection: Collection): Promise<void>
getById(id: string): Promise<Collection | null>
getAll(options: any): Promise<Collection[]>
}