11 lines
188 B
TypeScript
11 lines
188 B
TypeScript
interface A {
|
|
foo(): this;
|
|
}
|
|
interface B extends A {
|
|
bar(): this;
|
|
}
|
|
interface C extends B {
|
|
baz(): this;
|
|
}
|
|
var c: C;
|
|
var z = c.foo().bar().baz(); // Fluent pattern
|