Skip to content

Pass interval type for fictional child start and end age - #99

Open
mbarton wants to merge 4 commits into
livefrom
mbarton/fictional-child-intervals
Open

Pass interval type for fictional child start and end age#99
mbarton wants to merge 4 commits into
livefrom
mbarton/fictional-child-intervals

Conversation

@mbarton

@mbarton mbarton commented Aug 19, 2026

Copy link
Copy Markdown
Member

You could pass the interval type (month, year etc) before but you couldn't do it for start and end age meaning you had to do the maths in your head. I noticed this trying to build example generation into the dgc app rcpch/digital-growth-charts-app#26)

Also add some validation rather than returning empty result sets for invalid spans (e.g. start=1 year, end=0 years). This is technically a breaking change but feels excessive to burn a major version number on a helper function?

@mbarton mbarton self-assigned this Aug 19, 2026
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