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.
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.