Skip to content

NumberArgDef["default"] has incorrect type #182

Closed

Description

@sushichan044

Environment

package: 2c1ab57
Node.js: 22.14.0

Reproduction

Omitted because the issue is obvious.

Describe the bug

Currently, type of default property in NumberArgDef is boolean,
as boolean passed to 2nd argument of _ArgDef .
However, the type of the default property should be number.

export type NumberArgDef = Omit<_ArgDef<"number", boolean>, "options">;

Additional context

No response

Logs

Activity

  1. added
    bug
    on Feb 26, 2025
  2. changed the title [-]value type of NumberArgDef is incorrect[/-] [+]`NumberArgDef["default"]` has incorrect type[/+] on Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions