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
I might have stumbled on the same issue with an even simpler case:
import {
createMock
} from "ts-auto-mock";
type Wrapper<T> = T & {
addedField: string,
}
let a = createMock<Wrapper<{field1: number}>>()
console.log(a.field1); //undefined
console.log(a.addedField); //'addedField8e889b'
I was expecting to have both field populated but only first level is.
In this scenario ts auto mock should be able to mix/merge all the properties for ABC
Right now instead it will not merge literal properties after the first level.
f and d2 will not be in the mock
Issue
Its failing because it resolving the properties of the initial intersections types that will not include the subtypes
Possible solution
Still to investigate
The text was updated successfully, but these errors were encountered: