import * as api from "../api" ; export const deleteRun = ( id ) => ( state ) : Partial < api . State > => { const runsById = { ... state . runsById } ; delete runsById [ id ] ; const runs = state . runs . filter ( s => s !== id ) ; return { runs , runsById } ; } ;