Skip to content

[Typing] Integer toString parameter should be optional #585

Closed
@A-ZC-Lau

Description

@A-ZC-Lau

In the file types/integer.d.ts the toString method has a mandatory radix field i.e.

toString(radix: number): string

This should not be the case as the toString function in src/integer.js defaults to 10

i.e.

radix = radix || 10

Can we update the declaration to

toString(radix?: number): string

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions