12 lines
174 B
TypeScript
12 lines
174 B
TypeScript
|
declare class Foo {
|
||
|
x: string;
|
||
|
}
|
||
|
declare class Bar {
|
||
|
y: string;
|
||
|
}
|
||
|
type Wrapper = Foo & Bar;
|
||
|
class Baz implements Wrapper {
|
||
|
x: number;
|
||
|
y: string;
|
||
|
}
|