swc/crates/swc_ecma_parser/tests/tsc/fluentInterfaces.ts

12 lines
177 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