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