Closed
Description
when I do this:
class Foo {
private field: string
}
let mock: Foo = Substitute.for<Foo>()
I get :error TS2322: Type 'ObjectSubstitute<Pick<Foo, never>, Foo>' is not assignable to type 'Foo'.
Property 'field' is missing in type 'ObjectSubstitute<Pick<Foo, never>, Foo>'.
when I change "private" to "public", its ok!
Metadata
Metadata
Assignees
Labels
No labels