Skip to content

Missing types in currency.Any #446

@jonaspohren

Description

@jonaspohren

The currency.d.ts should be updated to also include undefined and null on currency.Any, because when passing those values it defaults to 0.

This code works fine, but TypeScript complains:
currency(null).add(undefined).value; // 0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions