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:
parent
5282c4a72b
commit
917ab0a79e
1 changed files with 6 additions and 0 deletions
6
ghost/collections/src/CollectionRepository.ts
Normal file
6
ghost/collections/src/CollectionRepository.ts
Normal 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[]>
|
||||
}
|
Loading…
Add table
Reference in a new issue