Incompatibility between Ember with the native types and ts-reset
#644
Replies: 1 comment 1 reply
-
In general I'd be super wary of using libraries like The problem is cases exactly like this: monkeypatching the built-in types can have unintended consequences to other libraries. Any time TypeScript itself makes even very small changes to the built-in types, it tends to break many libraries across the ecosystem that were implicitly relying on the prior types. The TS maintainers will often undertake a big PR (or series of PRs) to DefinitelyTyped to account for such changes, but libraries that ship their own types will frequently have to issue bugfix releases because of them. If you layer on additional tweaks to the standard types from third-party sources like this, it quickly becomes a minefield for maintainers to try and accommodate in projects that are highly sensitive to the details of the type system, like |
Beta Was this translation helpful? Give feedback.
-
Repo.
Check
tests/types/foo.ts
. It gives a strange error:If you remove
import '@total-typescript/ts-reset/filter-boolean';
fromtypes/global.d.ts
, it works fine. It also seems to work fine using the@types/ember__*
packages instead of the "native" types.Any ideas why that happens?
Beta Was this translation helpful? Give feedback.
All reactions