16 lines
243 B
TypeScript
16 lines
243 B
TypeScript
|
interface Foo {
|
||
|
fooProp: boolean;
|
||
|
}
|
||
|
|
||
|
interface Bar {
|
||
|
barProp: string;
|
||
|
}
|
||
|
|
||
|
interface FooBar extends Foo, Bar {
|
||
|
}
|
||
|
|
||
|
declare function mixBar<T>(obj: T): T & Bar;
|
||
|
|
||
|
let fooBar: FooBar = mixBar({
|
||
|
fooProp: "frizzlebizzle"
|
||
|
});
|