mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
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…
x
Reference in New Issue
Block a user