import { ITodo } from '../../interfaces/itodo' ; export interface ITodoResource { addTodo ( todo ) : Promise < ITodo > ; changeComplete ( id , userId , completed ) : Promise < ITodo > ; getAllTodos ( userId ) : Promise < ITodo [ ] > ; removeAllTodos ( userId ) : Promise < ITodo [ ] > ; removeTodo ( id , userId ) : Promise < ITodo > ; }