import { ITodo } from './todos.interface' ; export interface ITodosService { findAll ( ) : Promise < ITodo [ ] > ; findById ( ID ) : Promise < ITodo | null > ; findOne ( options ) : Promise < ITodo | null > ; create ( todos ) : Promise < ITodo > ; update ( ID , newValue ) : Promise < ITodo | null > ; delete ( ID ) : Promise < string > ; }