Skip to content

test: Pin UTC data type to number in type regression tests - #50

Merged
RobinBol merged 1 commit into
masterfrom
chore/utc-type-assertion
Aug 28, 2026
Merged

RobinBol merged 1 commit into
masterfrom
chore/utc-type-assertion

Conversation

@RobinBol

Copy link
Copy Markdown
Contributor

Adds DataTypes.UTC to the primitives struct in test/types-test.ts and pins its parsed value to number.

#49 added the UTC data type but no type-level assertion, so a regression in its index.d.ts declaration would compile fine and only surface downstream. Commenting out the declaration now fails npm run typecheck.

Refs #49

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
@RobinBol RobinBol self-assigned this Aug 28, 2026
@RobinBol
RobinBol marked this pull request as ready for review August 28, 2026 13:29
@RobinBol
RobinBol merged commit 0695aac into master Aug 28, 2026
4 checks passed
@RobinBol
RobinBol deleted the chore/utc-type-assertion branch August 28, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant