Files
tsgo/testdata/baselines/reference/submodule/conformance/fluentInterfaces.js

21 lines
382 B
TypeScript

//// [tests/cases/conformance/types/thisType/fluentInterfaces.ts] ////
//// [fluentInterfaces.ts]
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
//// [fluentInterfaces.js]
"use strict";
var c;
var z = c.foo().bar().baz(); // Fluent pattern