@synopackageland/ui 0.5.8 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,31 @@
1
+ /** One line per catalog component: what it is, its required props, slots and events. */
2
+ export declare function listSynoJsonComponents(): {
3
+ name: string;
4
+ description: string;
5
+ required: string[];
6
+ slots: string[];
7
+ events: string[];
8
+ }[];
9
+ /** The catalog name closest to a misspelled component, if any is close enough. */
10
+ export declare function closestSynoJsonComponent(name: string): string | undefined;
11
+ /** A component's props as JSON Schema, plus slots, events and a minimal valid element. */
12
+ export declare function describeSynoJsonComponent(name: string): {
13
+ name: string;
14
+ description: string;
15
+ props: {
16
+ [k: string]: {
17
+ required: boolean;
18
+ schema: Record<string, unknown>;
19
+ };
20
+ };
21
+ slots: string[];
22
+ events: string[];
23
+ example: {
24
+ type: string;
25
+ props: {
26
+ [k: string]: unknown;
27
+ };
28
+ children: never[];
29
+ };
30
+ } | undefined;
31
+ export type SynoJsonComponentDescription = NonNullable<ReturnType<typeof describeSynoJsonComponent>>;