import { IWebPartContext } from '@microsoft/sp-webpart-base' ; import ITodoItem from '../models/ITodoItem' ; import ITodoTaskList from '../models/ITodoTaskList' ; interface ITodoDataProvider { selectedList : ITodoTaskList ; webPartContext : IWebPartContext ; getTaskLists ( ) : Promise < ITodoTaskList [ ] > ; getItems ( ) : Promise < ITodoItem [ ] > ; createItem ( title ) : Promise < ITodoItem [ ] > ; updateItem ( itemUpdated ) : Promise < ITodoItem [ ] > ; deleteItem ( itemDeleted ) : Promise < ITodoItem [ ] > ; } export default ITodoDataProvider ;