idlize
24 строки · 451.0 Байт
1/* TODO: not yet implemented in the plugin */
2// @AnimatableExtend
3
4class FooAttribute {
5bar(): this {
6console.log("bar")
7return this
8}
9qux(): this {
10console.log("qux")
11return this
12}
13}
14
15@BuilderLambda("_Foo")
16declare function Foo(arg1: string): FooAttribute
17
18function _Foo(builder: (instance) => FooAttribute, arg1: string): void {
19builder(new FooAttribute())
20}
21
22Foo("label")
23.bar()
24.qux()
25
26