import { MutationUpdaterFn } from 'apollo-client' ; import { handleCreateTodoUpdate , handleDeleteTodoUpdate } from './todos' ; interface UpdateHandlerByName { [ key ] : MutationUpdaterFn ; } export const updateHandlerByName = { createTodo : handleCreateTodoUpdate , deleteTodo : handleDeleteTodoUpdate , } ;