Skip to content

Export quantity types for function signatures#9

Merged
gdtroszak merged 2 commits intomainfrom
7-make-dim-si-types-easy-to-use-for-end-users
Feb 13, 2026
Merged

Export quantity types for function signatures#9
gdtroszak merged 2 commits intomainfrom
7-make-dim-si-types-easy-to-use-for-end-users

Conversation

@gdtroszak
Copy link
Contributor

Replace dimension type re-exports with concrete quantity type aliases (e.g., Length = Linear<LengthDim, Si>) so users can annotate functions without reaching into lower-level packages.

  • All quantity modules now export a branded Linear<D, Si> type alias
  • Temperature exports both Temperature (Affine) and TemperatureDifference (Linear)
  • README updated with type annotation examples and new unit template

Closes #7

@gdtroszak gdtroszak linked an issue Feb 13, 2026 that may be closed by this pull request
@gdtroszak gdtroszak self-assigned this Feb 13, 2026
@gdtroszak gdtroszak requested a review from dyreby February 13, 2026 12:13
Replace dimension type re-exports with concrete quantity type aliases
(e.g., Length = Linear<LengthDim, Si>) so users can annotate functions
without reaching into lower-level packages.

Temperature exports both Temperature (Affine) and TemperatureDifference
(Linear) to distinguish absolute values from deltas.

Closes #7
@gdtroszak gdtroszak force-pushed the 7-make-dim-si-types-easy-to-use-for-end-users branch from 91f9533 to 9748953 Compare February 13, 2026 15:54
@gdtroszak gdtroszak merged commit d7fd4ea into main Feb 13, 2026
1 check passed
@gdtroszak gdtroszak deleted the 7-make-dim-si-types-easy-to-use-for-end-users branch February 13, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make dim-si types easy to use for end users

1 participant