build(types): add ESNext to tsconfig's lib#1297
Conversation
📝 WalkthroughWalkthroughThis PR adds "ESNext" to the tsconfig.json lib array to enable native Error.cause support, then marks the HTTPError class's cause property and static isError method as overrides to properly reflect their inheritance, removes a now-unnecessary Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
Resolves #1291.
"ESNext"to tsconfig'sliboption (included inlib's default value fortarget: "ESNext").overridetoHTTPErrormethods and properties.@ts-expect-errorcomments when creatingErrors withcause.Summary by CodeRabbit