Closed ayuka-bg closed 2 years ago
If i have something like this
interface ITestA { foo: string, bar: string, } type ITestB = Omit<ITestA, 'foo'> const bMock = mock<ITestB>();
bMock.foo still exist, but TS said there no foo property
bMock.foo
is it TS behavior or just bug?
This is the correct behavior, when you use Omit you are essentially telling typescript to ignore that field
Omit
not seeing that as an issue:
If i have something like this
bMock.foo
still exist, but TS said there no foo propertyis it TS behavior or just bug?