From c0f39a66d412712b122272dcaf8dd69333d1447c Mon Sep 17 00:00:00 2001 From: Robin Bolscher Date: Fri, 28 Aug 2026 15:28:16 +0200 Subject: [PATCH] test: Pin UTC data type to number in type regression tests The UTC data type was added without a type-level assertion, so a regression in its index.d.ts declaration would go unnoticed. Add it to the primitives struct alongside the other numeric types. Refs #49 --- test/types-test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/types-test.ts b/test/types-test.ts index 1bf4dfa..ae1d451 100644 --- a/test/types-test.ts +++ b/test/types-test.ts @@ -42,6 +42,7 @@ const ints = Struct("Ints", { i8: DataTypes.int8, i32: DataTypes.int32, u4: DataTypes.uint4, + utc: DataTypes.UTC, sng: DataTypes.single, dbl: DataTypes.double, }).fromBuffer(emptyBuf()); @@ -51,6 +52,7 @@ const _intU32: number = ints.u32; const _intI8: number = ints.i8; const _intI32: number = ints.i32; const _intU4: number = ints.u4; +const _intUtc: number = ints.utc; const _intSng: number = ints.sng; const _intDbl: number = ints.dbl;