Skip to content

feat: add fromDiagnosis to derive narrowing guards from diagnoses#446

Merged
gjbkz merged 1 commit into
mainfrom
439-from-diagnosis
Jul 20, 2026
Merged

feat: add fromDiagnosis to derive narrowing guards from diagnoses#446
gjbkz merged 1 commit into
mainfrom
439-from-diagnosis

Conversation

@gjbkz

@gjbkz gjbkz commented Jul 20, 2026

Copy link
Copy Markdown
Member

Summary

  • add fromDiagnosis to derive narrowing predicates from diagnosis generators
  • preserve private diagnosis metadata and one-pass structured validation
  • document and test boolean short-circuiting, detailed issues, and type inference

Tests

  • npm run lint
  • npm run test:type
  • npm run test:unit
  • npm run test:example
  • npx c8 npm run test
  • bun test src --coverage --coverage-reporter=lcov
  • npm run build
  • ESM and CommonJS package-entry smoke tests

Closes #439

@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.76%. Comparing base (9dda6de) to head (e342353).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #446      +/-   ##
==========================================
+ Coverage   97.74%   97.76%   +0.02%     
==========================================
  Files          50       50              
  Lines        2703     2732      +29     
  Branches      293      296       +3     
==========================================
+ Hits         2642     2671      +29     
  Misses         61       61              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gjbkz
gjbkz merged commit fa73337 into main Jul 20, 2026
8 checks passed
@gjbkz
gjbkz deleted the 439-from-diagnosis branch July 20, 2026 10:45
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.

feat: add fromDiagnosis to derive narrowing guards from diagnoses

1 participant