You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incompatibility between Ember with the native types and ts-reset #643
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.
Activity