Skip to content

fix: include 'esnext.array' lib to suppress type errors#2

Merged
aicest merged 1 commit intomainfrom
fix-type-errors
Mar 19, 2026
Merged

fix: include 'esnext.array' lib to suppress type errors#2
aicest merged 1 commit intomainfrom
fix-type-errors

Conversation

@aicest
Copy link
Copy Markdown
Owner

@aicest aicest commented Mar 19, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 19, 2026 07:03
@aicest aicest merged commit 7584ab2 into main Mar 19, 2026
5 checks passed
@aicest aicest deleted the fix-type-errors branch March 19, 2026 07:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates TypeScript compilation libs to better align with an ES2022 target while attempting to restore typings for Array.fromAsync used by this package’s ponyfill implementation.

Changes:

  • Changed tsconfig.json compilerOptions.lib from ESNext to ES2022.
  • Added a file-level TypeScript lib reference for esnext.array in the public entrypoint (src/index.ts).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
tsconfig.json Adjusts global lib baseline to ES2022 (affects available built-in typings).
src/index.ts Adds esnext.array lib reference to provide Array.fromAsync typings in the entrypoint.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/index.ts
Comment on lines +1 to +2
/// <reference lib="esnext.array" />

@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0d10d65) to head (108453d).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #2   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           18        18           
  Branches         8         8           
=========================================
  Hits            18        18           

☔ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants