Skip to content

#4801 wrong return type of formatter function #4987

@daiboom

Description

@daiboom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions