Closed Blckbrry-Pi closed 2 weeks ago
reexport
says it's only exporting the types from orig
, so it's correct to not re-export the values. That's the difference between export *
and export type *
.
Am I correct in saying that it does break backwards compatibility with Typescript 5.3. if you were relying on `export type to behave like
export *in a
.d.ts` file?
Bug fixes can break compat, yes
Cool. Thank you!
π Search Terms
"ts2339", "export *", ".d.ts", "regression", "5.4", "namespace", "Property does not exist"
π Version & Regression Information
β― Playground Link
(Just found out about Bug Workbench)
π» Code
Bug workbench
Normal filesystem
orig.d.ts
:reexport.d.ts
:consumer.ts
:π Actual behavior
./node_modules/typescript-v5.3.3/bin/tsc --noEmit *.ts
exited without errors./node_modules/typescript-v5.4.2/bin/tsc --noEmit *.ts
emitted error 2339:π Expected behavior
./node_modules/typescript-v5.3.3/bin/tsc --noEmit *.ts
to exit without errors./node_modules/typescript-v5.4.2/bin/tsc --noEmit *.ts
to exit without errorsAdditional information about the issue
I was unable to build versions
5.4.0
and5.4.1
withevery-ts
, and AFAIK, bug workbench doesn't support versions other than the most recent patch version.This change may have happened by 5.4.0 or 5.4.1, but I know it definitely changed between
5.3.3
and5.4.2
.