Open Glandos opened 2 weeks ago
We need a shorter repro here if we're going to investigate something that's observably more-correct
OK, I've managed to set something up at https://github.com/Glandos/test-ts-55/ There are maybe too much dependencies, but it's a strip down version of my project. With dependencies in yarn cache with LFS. Maybe there's also too much .d.ts. Tell me if it's minimal enough :)
20-30 lines in three files (plus config) or less is the target here; that's all that should be needed to demonstrate the described problem if it's actually a bug
🔎 Search Terms
Duplicate identifier 'VueI18n'. Subsequent property declarations must have the same type.
🕗 Version & Regression Information
Behavior is the same with 5.7.0-dev.20240830
⏯ Playground Link
No response
💻 Code
shims-augment.d.ts:
Excerpt of vue-i18n/types/index.d.ts:
🙁 Actual behavior
On top of that, since
$t
is in error, my whole code base reports an error whenever it uses the returned value of$t
as a string.🙂 Expected behavior
No error were reported with 5.4.5
Additional information about the issue
I apologize if it's a feature, not a bug, but I wasn't able to find any info on this in the release notes.
I know that narrowing is not safe here, I'm wondering why it was allowed with old Typescript, and not anymore.