Topological superconductivity at the edge of transition metal dichalcogenides