-
-
Couldn't load subscription status.
- Fork 1.4k
Description
Description
The return type of formatter should be string | number | (string | number)[], but it is currently defined as string | number | (string | string)[]. This is a type definition error in issue #4801 that needs to be corrected.
Steps to Reproduce
Check the type definition in issue #4801
Notice that the formatter return type is incorrectly defined as string | number | (string | string)[]
This causes type errors when trying to return an array containing number values
Expected Behavior
The formatter function should accept a return type of string | number | (string | number)[] to allow arrays containing both string and number values.
Actual Behavior
Currently, the formatter function only accepts string | number | (string | string)[] which means arrays can only contain string values, not numbers.