3.5.4 breaks Array.isArray on JsonValue through #549
Author: leaumarCreated Feb 2, 2023Updated Aug 15, 2026
Labelsbug
Trying to update type-fest to 3.5.4 yields the following breakage:

An Array.isArray(JsonValue) guard removes JsonValue[] but not readonly JsonValue[] from the type. Is there a non-hacky solution (i.e. no manual type overrides) or could #549 be reverted and achieved a different way?
Source: sindresorhus/type-fest