Check tests/types/foo.ts. It gives a strange error:
tests/types/foo.ts:11:7 - error TS2345: Only primitive values and certain DOM objects (see `ContentValue` in `@glint/template`) are usable as top-level template content.
Argument of type 'UnmetExpectation<"Expected type to be `number`, but got", unknown>' is not assignable to parameter of type 'ContentValue'.
11 {{@expectTypeOf number @to.beNumber}}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you remove import '@total-typescript/ts-reset/filter-boolean'; from types/global.d.ts, it works fine. It also seems to work fine using the @types/ember__* packages instead of the "native" types.
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?