Skip to content

BigInt constructor should not accept any type #38980

Closed
@LongTengDao

Description

@LongTengDao

TypeScript Version: 3.9.3

Search Terms:

Code

Expected behavior:

interface BigIntConstructor {
    (value: string | number | bigint | boolean | object): bigint;
}

Actual behavior:

interface BigIntConstructor {
    (value?: any): bigint;
}

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Experimentation NeededSomeone needs to try this out to see what happensGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do thisSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions