diff --git a/src/lang/ts/mod.rs b/src/lang/ts/mod.rs index 1d0c35d..3c2e039 100644 --- a/src/lang/ts/mod.rs +++ b/src/lang/ts/mod.rs @@ -656,4 +656,4 @@ const STRING: &str = "string"; const BOOLEAN: &str = "boolean"; const NULL: &str = "null"; const NEVER: &str = "never"; -const BIGINT: &str = "BigInt"; +const BIGINT: &str = "bigint"; diff --git a/tests/bigints.rs b/tests/bigints.rs index 23b41b5..16e86fc 100644 --- a/tests/bigints.rs +++ b/tests/bigints.rs @@ -69,7 +69,7 @@ fn test_bigint_types() { for_bigint_types!(T -> |name| assert_eq!(specta::ts::inline::(&ExportConfig::new().bigint(BigIntExportBehavior::String)), Ok("string".into()))); for_bigint_types!(T -> |name| assert_eq!(specta::ts::inline::(&ExportConfig::new().bigint(BigIntExportBehavior::Number)), Ok("number".into()))); - for_bigint_types!(T -> |name| assert_eq!(specta::ts::inline::(&ExportConfig::new().bigint(BigIntExportBehavior::BigInt)), Ok("BigInt".into()))); + for_bigint_types!(T -> |name| assert_eq!(specta::ts::inline::(&ExportConfig::new().bigint(BigIntExportBehavior::BigInt)), Ok("bigint".into()))); // Check error messages are working correctly -> These tests second for `ExportPath` which is why they are so comprehensive assert_eq!(