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
Suppose we have the same enum type in our core code and in our lib - one lib(main.ts) and one in (lib.ts). expectType does not work as expected here.
// main.tsexportenumFoo{"A"="A"}// lib.tsexportenumFoo{"A"="A"}// test.test-d.tsimport{Foo}from"./main"import{FooasFoo2}from"./lib"constaFoo: Foo=Foo.Aconst_aFoo2: Foo2=aFoo// Assignment - OKexpectType<Foo2>(aFoo)// Expected to pass, but gives error `Parameter type Foo is not identical to argument type Foo.
The text was updated successfully, but these errors were encountered:
Suppose we have the same enum type in our core code and in our lib - one lib(main.ts) and one in (lib.ts).
expectType
does not work as expected here.The text was updated successfully, but these errors were encountered: