slightning-coco-widget
Version:
SLIGHTNING 的 CoCo 控件框架。
27 lines (26 loc) • 1.67 kB
TypeScript
import { Decorator } from "./decorators";
import { StandardTypes, Types } from "./types";
import { Widget } from "./widget";
type Platform = "CoCo" | "CreationProject" | "CreationProject1" | "CreationProject2" | "NodeJS";
type Platforms = "CoCo" | "CreationProject" | "CreationProject1" | "CreationProject2" | "Node" | "CoCo|CreationProject" | "CoCo|CreationProject1" | "CoCo|CreationProject2" | "CoCo|NodeJS" | "CreationProject|NodeJS" | "CreationProject1|CreationProject2" | "CreationProject1|NodeJS" | "CreationProject2|NodeJS" | "CoCo|CreationProject|NodeJS" | "CoCo|CreationProject1|CreationProject2" | "CoCo|CreationProject1|NodeJS" | "CoCo|CreationProject2|NodeJS" | "CreationProject1|CreationProject2|NodeJS" | "CoCo|CreationProject1|CreationProject2|NodeJS";
export interface ExportConfig {
decorators?: (Decorator | Partial<Record<Platforms, Decorator | Decorator[] | null | undefined>>)[] | null | undefined;
CoCo?: {
decorators?: Decorator[] | null | undefined;
} | null | undefined;
CreationProject?: {
decorators?: Decorator[] | null | undefined;
} | null | undefined;
CreationProject1?: {
decorators?: null | undefined;
} | null | undefined;
CreationProject2?: {
decorators?: null | undefined;
} | null | undefined;
NodeJS?: {
decorators?: null | undefined;
} | null | undefined;
}
export declare function decorate(types: StandardTypes, widget: Widget, config: ExportConfig | null | undefined, platforms: Platform[]): [StandardTypes, Widget];
export declare function exportWidget(types: Types, widget: Widget, config?: ExportConfig | null | undefined): void;
export {};