idlize
22 строки · 1.1 Кб
1import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, ESObject, ForEach, GestureGroup, IDataSource, ImageBitmap, Indicator, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, OffscreenCanvasRenderingContext2D, PanGesture, PanGestureOptions, PatternLockController, PinchGesture, RenderingContextSettings, RichEditorController, Scroller, SearchController, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextInputOptions, TextTimerController, TransitionEffect, VideoController, WebController, XComponentController, animateTo } from "@koalaui/arkoala-arkui";
2/* TODO: not yet implemented in the plugin */
3// @AnimatableExtend
4class FooAttribute {
5bar(): this {
6console.log("bar");
7return this;
8}
9qux(): this {
10console.log("qux");
11return this;
12}
13}
14@BuilderLambda("_Foo")
15declare function Foo(arg1: string): FooAttribute;
16function _Foo(builder: (instance) => FooAttribute, arg1: string): void {
17builder(new FooAttribute());
18}
19_Foo(instance => {
20instance.bar()
21.qux();
22}, "label");
23