planarnetwork / dtd2mysql

MySQL / MariaDB import for DTD feeds (fares, timetable and routeing)
30 stars 10 forks source link

fix Typescript delete must be on optional error #89

Closed miklcct closed 6 months ago

miklcct commented 6 months ago

I'm sorry, the code in #87 to introduce type safety has uncovered a type error in #88 . I didn't realise that the delete operator must only be used on optional properties, and the code now no longer runs.

This rewrites the method to avoid mutation, but transformation instead.