fix: include 'esnext.array' lib to suppress type errors#2
Conversation
There was a problem hiding this comment.
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.jsoncompilerOptions.libfromESNexttoES2022. - Added a file-level TypeScript lib reference for
esnext.arrayin 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.
| /// <reference lib="esnext.array" /> | ||
|
|
|
🎉 This PR is included in version 1.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
No description provided.