export function foo(args: any) {
const { bar, ...extraArgs } = args;
return extraArgs;
}
🙁 Actual behavior
node_modules\.bin\tsc -b
src/index.ts:2:21 - error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.
2 const { bar, ...extraArgs } = args;
~~~~~~~~~
Found 1 error.
🔎 Search Terms
importHelpers This syntax requires an imported helper but module 'tslib' cannot be found. TS2354
🕗 Version & Regression Information
fails on 5.5.0-beta
reproduces on 5.5.0-dev.20240425 can't be reproduced on playground as it seems to ignore importHelpers
⏯ Playground Link
https://github.com/Knagis/importHelpers-5.5.0
💻 Code
tsconfig.json:
src/index.ts
🙁 Actual behavior
🙂 Expected behavior
Code compiles without errors.
Additional information about the issue
No response