Skip to content

Add MetricBuilder Static Types#22

Open
JHWelch wants to merge 3 commits intoDirectoryTree:masterfrom
JHWelch:add-some-types
Open

Add MetricBuilder Static Types#22
JHWelch wants to merge 3 commits intoDirectoryTree:masterfrom
JHWelch:add-some-types

Conversation

@JHWelch
Copy link

@JHWelch JHWelch commented Feb 3, 2026

To make this a little easier to work with with static analysis, looked to improve the typing of MetricBuilder. This adds the @extend annotation so that the underlying Builder instance will indicate it is outputting the Metric.

Using the @template tag allows for MetricBuilder to be overridden in the consuming app to reference an overridden Metric.

While looking at times handled a few other small items.

Thanks for the package! Let me know if you'd like me to handle anything differently.

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.

1 participant