Skip to content

Conversation

@rzzf
Copy link
Member

@rzzf rzzf commented Nov 16, 2025

demo

const foo = () => {
  const bar: number | undefined = 1
  if (isNullish(bar)) {
    return
  }
 
  // Before: The type of bar is never.
  // After: The type of bar is number.
}

@rzzf rzzf requested review from chouchouji and haoziqaq November 16, 2025 05:34
@codecov
Copy link

codecov bot commented Nov 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.61%. Comparing base (c10d263) to head (044b200).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev      #43   +/-   ##
=======================================
  Coverage   99.61%   99.61%           
=======================================
  Files         132      132           
  Lines         773      773           
  Branches      156      156           
=======================================
  Hits          770      770           
  Misses          3        3           

☔ View full report in Codecov by Sentry.
📢 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.

@haoziqaq haoziqaq merged commit aced157 into dev Nov 16, 2025
5 checks passed
@rzzf rzzf deleted the types/isNullish branch November 16, 2025 13:13
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.

3 participants