import { Task } from '../Task.entity' ; export interface ITaskRepository { save ( task ) : Promise < Task > ; findOneByName ( name ) : Promise < Task | undefined > ; findOneById ( id ) : Promise < Task | undefined > ; findTasks ( page ) : Promise < [ Task [ ] , number ] > ; }