Skip to content

Investigate conditional type depending on beautifier enabled setting #125

@tiagosiebler

Description

@tiagosiebler

Depending on whether the beautifier is enabled, some numbers may be strings:
https://github.com/tiagosiebler/binance/blob/v2.0.0/beta/src/types/shared.ts#L1-L3

beautifyResponses?: boolean;

Would love to conditionally set the type to number or string, depending on the state of that setting. There must be a way...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions