Skip to content

Reconsider bringing BigIntExportBehavior::Number back #481

@mackrol

Description

@mackrol

Since specta_typescript 0.0.11 BigIntExportBehaviour is no longer available and export fails if there is any i64 in the fields. I use i64 as timestamps in milliseconds extensively across many projects. Manually annotating them with different type i.e. #[specta(type = f64)] is a hack that will cause troubles in other exporters . We need a global configuration for i64 and other long precision primitives in the typescript exporter.

There is an explanation why this was removed in bigint-forbidden. But it feels too strict. I as a user have previously agreed to loss of precision and potentially bugs on the receiving end by using BigIntExportBehaviour::Number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions