import Post from '../infra/typeorm/entities/Post' ; import ICreatePostDTO from '../dtos/ICreatePostDTO' ; interface IPostsRepository { create ( data ) : Promise < Post > ; save ( data ) : Promise < Post > ; findById ( id ) : Promise < Post | undefined > ; findByUser ( id ) : Promise < Post [ ] > ; remove ( id ) : void ; } export default IPostsRepository ;