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.
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.