its impossible for arrayValues to be UnknownArrayDimension if size is ValueResult, so why does typescript think that arrayValues can still be UnknownArrayDimension on line 36?
also, is there a more "elegant" way to define that? without having to duplicate the type just to change 2 properties
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.