I get an ts4104 error on the method definition but I actually don't understand it.
Error Text
The type 'readonly ["large_airport", "medium_airport"]' is 'readonly' and cannot be assigned to the mutable type '("large_airport" | "medium_airport")[]'.
Supporting Information
Please provide other information which led to this error, and any specific questions you have about it:
Hi,
I have this
And I'm trying to do this
I get an ts4104 error on the method definition but I actually don't understand it.
Error Text
The type 'readonly ["large_airport", "medium_airport"]' is 'readonly' and cannot be assigned to the mutable type '("large_airport" | "medium_airport")[]'.
Supporting Information
Please provide other information which led to this error, and any specific questions you have about it: