Skip to content

Type definition of numbers is incorrect #44

@luc122c

Description

@luc122c

This type definition is incorrect:

export function numbers(): number[];

The 'number' field in data is a string. There are two solutions to this:

  1. Update the definition to string[]
  2. Pass the value through the number constructor to make it a number

I'd be happy to open a PR for whichever solution is prefered. Personally, I'd prefer number to be an array of numbers :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions