13 lines
284 B
TypeScript
13 lines
284 B
TypeScript
|
interface Foo {
|
||
|
a: number;
|
||
|
b: number;
|
||
|
bar: string;
|
||
|
}
|
||
|
interface ObjectContaining<T> {
|
||
|
new (sample: Partial<T>): Partial<T>
|
||
|
}
|
||
|
declare let cafoo: ObjectContaining<{ a: number, foo: number }>;
|
||
|
declare let cfoo: ObjectContaining<Foo>;
|
||
|
cfoo = cafoo;
|
||
|
cafoo = cfoo;
|