When I create a luxon DateTime object from the fromISO method, seems like it cannot be assigned to DateTime properly.


let datetime: DateTime = DateTime.fromISO(isoString);

does not compile with the error:

Type 'DateTime<true> | DateTime<false>' is not assignable to type 'DateTime<boolean>'.
  Type 'DateTime<true>' is missing the following properties from type 'DateTime<boolean>': isWeekend, localWeekday, localWeekNumber, localWeekYear, weeksInLocalWeekYear

What is a proper way to construct DateTime from ISO string?