Update tests
This commit is contained in:
parent
8cbff0159d
commit
3357aae2d8
|
@ -11,7 +11,7 @@ type Data<T> = {
|
|||
};
|
||||
|
||||
class Parent<M> {
|
||||
private data: Data<M>;
|
||||
constructor(private data: Data<M>) {}
|
||||
getData(): Data<M> {
|
||||
return this.data;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ interface Foo {
|
|||
}
|
||||
|
||||
class A<P extends Partial<Foo>> {
|
||||
props: Readonly<P>
|
||||
constructor(public props: Readonly<P>) {}
|
||||
doSomething() {
|
||||
this.props.foo && this.props.foo()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue