import { User } from 'domain/users' import { Post } from 'domain/posts' /** * Post service interface * * @export * @interface IPostService */ export interface IPostService { addPost: (userId: string, post: Post) => Promise updatePost: (userId: string, postId: string, post: Post) => Promise deletePost: (userId: string,postId: string) => Promise getPosts: (userId: string) => Promise<{ [postId: string]: Post }> getPostById: (userId: string, postId: string) => Promise }