@json-layout/vocabulary 1.4.1 → 1.5.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.
- package/package.json +3 -4
- package/src/index.js +1 -1
- package/src/layout-keyword/index.js +6 -7
- package/src/normalize.js +34 -1
- package/src/normalized-layout/index.js +3 -4
- package/src/types.ts +12 -1
- package/types/components/compile-types.d.ts +13 -0
- package/types/components/compile-types.d.ts.map +1 -0
- package/types/components/index.d.ts +54 -0
- package/types/components/index.d.ts.map +1 -0
- package/types/components/types.d.ts +420 -0
- package/types/components/types.d.ts.map +1 -0
- package/types/index.d.ts +7 -0
- package/types/index.d.ts.map +1 -0
- package/types/layout-keyword/index.d.ts +51 -0
- package/types/layout-keyword/index.d.ts.map +1 -0
- package/types/layout-keyword/schema.d.ts +387 -0
- package/types/layout-keyword/schema.d.ts.map +1 -0
- package/types/layout-keyword/types.d.ts +222 -0
- package/types/layout-keyword/types.d.ts.map +1 -0
- package/types/normalize.d.ts +32 -0
- package/types/normalize.d.ts.map +1 -0
- package/types/normalized-layout/index.d.ts +66 -0
- package/types/normalized-layout/index.d.ts.map +1 -0
- package/types/normalized-layout/schema.d.ts +583 -0
- package/types/normalized-layout/schema.d.ts.map +1 -0
- package/types/normalized-layout/types.d.ts +294 -0
- package/types/normalized-layout/types.d.ts.map +1 -0
- package/types/types.d.ts +50 -0
- package/types/types.d.ts.map +1 -0
- package/types/validate.d.ts +8 -0
- package/types/validate.d.ts.map +1 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
3
|
+
* via the `definition` "normalized-layout".
|
|
4
|
+
*/
|
|
5
|
+
export type NormalizedLayout = SwitchStruct | BaseCompObject;
|
|
6
|
+
/**
|
|
7
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
8
|
+
* via the `definition` "state-node-options-base".
|
|
9
|
+
*/
|
|
10
|
+
export type StateNodeOptionsBase = StateNodeOptionsBaseLib & {
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
summary?: boolean;
|
|
13
|
+
titleDepth?: number;
|
|
14
|
+
density?: "default" | "comfortable" | "compact";
|
|
15
|
+
indent?: boolean | number;
|
|
16
|
+
/**
|
|
17
|
+
* true is the same as 'unknown', false is the same as 'none'
|
|
18
|
+
*/
|
|
19
|
+
removeAdditional?: boolean | ("unknown" | "error" | "none");
|
|
20
|
+
validateOn?: "input" | "blur" | "submit";
|
|
21
|
+
updateOn?: "input" | "blur";
|
|
22
|
+
debounceInputMs?: number;
|
|
23
|
+
initialValidation?: "never" | "always" | "withData";
|
|
24
|
+
defaultOn?: "missing" | "empty" | "never";
|
|
25
|
+
autofocus?: boolean;
|
|
26
|
+
readOnlyPropertiesMode?: "remove" | "hide" | "show";
|
|
27
|
+
[k: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
31
|
+
* via the `definition` "cols".
|
|
32
|
+
*/
|
|
33
|
+
export type Cols = number;
|
|
34
|
+
/**
|
|
35
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
36
|
+
* via the `definition` "slots".
|
|
37
|
+
*/
|
|
38
|
+
export type Slots = StateNodeSlotsLib & {
|
|
39
|
+
before?: Slot;
|
|
40
|
+
after?: Slot;
|
|
41
|
+
component?: Slot;
|
|
42
|
+
[k: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* This interface was referenced by `StateNodeSlotsLib`'s JSON-Schema definition
|
|
46
|
+
* via the `patternProperty` ".*".
|
|
47
|
+
*
|
|
48
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
49
|
+
* via the `definition` "slot".
|
|
50
|
+
*/
|
|
51
|
+
export type Slot = {
|
|
52
|
+
text: string;
|
|
53
|
+
} | {
|
|
54
|
+
markdown: string;
|
|
55
|
+
} | {
|
|
56
|
+
name: string;
|
|
57
|
+
props?: {
|
|
58
|
+
[k: string]: unknown;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
63
|
+
* via the `definition` "composite-comp-object".
|
|
64
|
+
*/
|
|
65
|
+
export type CompositeCompObject = BaseCompObject & {
|
|
66
|
+
comp: string;
|
|
67
|
+
title?: string | null;
|
|
68
|
+
subtitle?: string | null;
|
|
69
|
+
children: Children;
|
|
70
|
+
[k: string]: unknown;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
74
|
+
* via the `definition` "child".
|
|
75
|
+
*/
|
|
76
|
+
export type Child = ChildRef | ChildComposite | ChildSlot;
|
|
77
|
+
/**
|
|
78
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
79
|
+
* via the `definition` "children".
|
|
80
|
+
*/
|
|
81
|
+
export type Children = Child[];
|
|
82
|
+
/**
|
|
83
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
84
|
+
* via the `definition` "slot-comp-object".
|
|
85
|
+
*/
|
|
86
|
+
export type SlotCompObject = BaseCompObject & {
|
|
87
|
+
comp: "slot";
|
|
88
|
+
[k: string]: unknown;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
92
|
+
* via the `definition` "simple-comp-object".
|
|
93
|
+
*/
|
|
94
|
+
export type SimpleCompObject = BaseCompObject & {
|
|
95
|
+
comp: string;
|
|
96
|
+
label?: string;
|
|
97
|
+
hint?: string | null;
|
|
98
|
+
[k: string]: unknown;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
102
|
+
* via the `definition` "focusable-comp-object".
|
|
103
|
+
*/
|
|
104
|
+
export type FocusableCompObject = BaseCompObject & {
|
|
105
|
+
comp: string;
|
|
106
|
+
autofocus?: boolean;
|
|
107
|
+
[k: string]: unknown;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
111
|
+
* via the `definition` "items-based-comp-object".
|
|
112
|
+
*/
|
|
113
|
+
export type ItemsBasedCompObject = BaseCompObject & {
|
|
114
|
+
comp: string;
|
|
115
|
+
items?: SelectItems;
|
|
116
|
+
getItems?: GetItems;
|
|
117
|
+
[k: string]: unknown;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
121
|
+
* via the `definition` "select-items".
|
|
122
|
+
*/
|
|
123
|
+
export type SelectItems = SelectItem[];
|
|
124
|
+
/**
|
|
125
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
126
|
+
* via the `definition` "get-items".
|
|
127
|
+
*/
|
|
128
|
+
export type GetItems = {
|
|
129
|
+
returnObjects?: boolean;
|
|
130
|
+
itemsResults?: Expression;
|
|
131
|
+
itemTitle?: Expression;
|
|
132
|
+
itemKey?: Expression;
|
|
133
|
+
itemValue?: Expression;
|
|
134
|
+
itemIcon?: Expression;
|
|
135
|
+
immutable?: boolean;
|
|
136
|
+
[k: string]: unknown;
|
|
137
|
+
} & (Expression | GetItemsFetch);
|
|
138
|
+
/**
|
|
139
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
140
|
+
* via the `definition` "multiple-compat-comp-object".
|
|
141
|
+
*/
|
|
142
|
+
export type MultipleCompatCompObject = BaseCompObject & {
|
|
143
|
+
comp: string;
|
|
144
|
+
multiple?: boolean;
|
|
145
|
+
separator?: string;
|
|
146
|
+
[k: string]: unknown;
|
|
147
|
+
};
|
|
148
|
+
export interface HttpsJsonLayoutGithubIoNormalizedLayoutKeyword {
|
|
149
|
+
[k: string]: unknown;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
153
|
+
* via the `definition` "switch-struct".
|
|
154
|
+
*/
|
|
155
|
+
export interface SwitchStruct {
|
|
156
|
+
switch: BaseCompObject[];
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
160
|
+
* via the `definition` "base-comp-object".
|
|
161
|
+
*/
|
|
162
|
+
export interface BaseCompObject {
|
|
163
|
+
comp: string;
|
|
164
|
+
if?: Expression;
|
|
165
|
+
options?: StateNodeOptionsBase;
|
|
166
|
+
getOptions?: Expression;
|
|
167
|
+
defaultData?: unknown;
|
|
168
|
+
getDefaultData?: Expression;
|
|
169
|
+
constData?: unknown;
|
|
170
|
+
getConstData?: Expression;
|
|
171
|
+
transformData?: Expression;
|
|
172
|
+
nullable?: boolean;
|
|
173
|
+
help?: string;
|
|
174
|
+
cols?: ColsObj;
|
|
175
|
+
props?: StateNodePropsLib;
|
|
176
|
+
getProps?: Expression;
|
|
177
|
+
slots?: Slots;
|
|
178
|
+
[k: string]: unknown;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
182
|
+
* via the `patternProperty` ".*".
|
|
183
|
+
*
|
|
184
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
185
|
+
* via the `definition` "expression".
|
|
186
|
+
*/
|
|
187
|
+
export interface Expression {
|
|
188
|
+
type: "js-fn" | "js-eval" | "js-tpl";
|
|
189
|
+
expr: string;
|
|
190
|
+
pure: boolean;
|
|
191
|
+
dataAlias: string;
|
|
192
|
+
ref?: number;
|
|
193
|
+
[k: string]: unknown;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
197
|
+
* via the `definition` "state-node-options-base-lib".
|
|
198
|
+
*/
|
|
199
|
+
export interface StateNodeOptionsBaseLib {
|
|
200
|
+
/**
|
|
201
|
+
* This interface was referenced by `StateNodeOptionsBaseLib`'s JSON-Schema definition
|
|
202
|
+
* via the `patternProperty` ".*".
|
|
203
|
+
*/
|
|
204
|
+
[k: string]: unknown;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
208
|
+
* via the `definition` "cols-obj".
|
|
209
|
+
*/
|
|
210
|
+
export interface ColsObj {
|
|
211
|
+
xs: number;
|
|
212
|
+
sm?: Cols;
|
|
213
|
+
md?: Cols;
|
|
214
|
+
lg?: Cols;
|
|
215
|
+
xl?: Cols;
|
|
216
|
+
xxl?: Cols;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
220
|
+
* via the `definition` "state-node-props-lib".
|
|
221
|
+
*/
|
|
222
|
+
export interface StateNodePropsLib {
|
|
223
|
+
/**
|
|
224
|
+
* This interface was referenced by `StateNodePropsLib`'s JSON-Schema definition
|
|
225
|
+
* via the `patternProperty` ".*".
|
|
226
|
+
*/
|
|
227
|
+
[k: string]: unknown;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
231
|
+
* via the `definition` "state-node-slots-lib".
|
|
232
|
+
*/
|
|
233
|
+
export interface StateNodeSlotsLib {
|
|
234
|
+
[k: string]: Slot;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
238
|
+
* via the `definition` "child-ref".
|
|
239
|
+
*/
|
|
240
|
+
export interface ChildRef {
|
|
241
|
+
key: string | number;
|
|
242
|
+
cols?: ColsObj;
|
|
243
|
+
if?: Expression;
|
|
244
|
+
slots?: Slots;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
248
|
+
* via the `definition` "child-composite".
|
|
249
|
+
*/
|
|
250
|
+
export interface ChildComposite {
|
|
251
|
+
key: string | number;
|
|
252
|
+
cols?: ColsObj;
|
|
253
|
+
comp?: string;
|
|
254
|
+
title?: string;
|
|
255
|
+
subtitle?: string;
|
|
256
|
+
children: Children;
|
|
257
|
+
if?: Expression;
|
|
258
|
+
slots?: Slots;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
262
|
+
* via the `definition` "child-slot".
|
|
263
|
+
*/
|
|
264
|
+
export interface ChildSlot {
|
|
265
|
+
key: string | number;
|
|
266
|
+
cols?: ColsObj;
|
|
267
|
+
comp: "slot";
|
|
268
|
+
if?: Expression;
|
|
269
|
+
slots: Slots;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
273
|
+
* via the `definition` "select-item".
|
|
274
|
+
*/
|
|
275
|
+
export interface SelectItem {
|
|
276
|
+
title: string;
|
|
277
|
+
key: string;
|
|
278
|
+
value: unknown;
|
|
279
|
+
icon?: string;
|
|
280
|
+
[k: string]: unknown;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
284
|
+
* via the `definition` "get-items-fetch".
|
|
285
|
+
*/
|
|
286
|
+
export interface GetItemsFetch {
|
|
287
|
+
url: Expression;
|
|
288
|
+
qSearchParam?: string;
|
|
289
|
+
searchParams?: {
|
|
290
|
+
[k: string]: Expression;
|
|
291
|
+
};
|
|
292
|
+
[k: string]: unknown;
|
|
293
|
+
}
|
|
294
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/normalized-layout/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,cAAc,CAAC;AAC7D;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,uBAAuB,GAAG;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,SAAS,CAAC;IAChD,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,GAAG,CAAC,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;IAC5D,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAA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IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;CACd;AACD;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AACD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,UAAU,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE;QACb,CAAC,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;KACzB,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
|
package/types/types.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type LayoutKeyword } from './layout-keyword/types.js';
|
|
2
|
+
import { type NormalizedLayout } from './normalized-layout/types.js';
|
|
3
|
+
export interface SchemaFragment {
|
|
4
|
+
layout?: LayoutKeyword;
|
|
5
|
+
oneOfLayout?: LayoutKeyword;
|
|
6
|
+
patternPropertiesLayout?: LayoutKeyword;
|
|
7
|
+
type?: string | string[];
|
|
8
|
+
format?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
properties?: Record<string, any>;
|
|
12
|
+
patternProperties?: Record<string, any>;
|
|
13
|
+
oneOf?: any[];
|
|
14
|
+
anyOf?: any[];
|
|
15
|
+
allOf?: any[];
|
|
16
|
+
items?: any;
|
|
17
|
+
enum?: any[];
|
|
18
|
+
examples?: any[];
|
|
19
|
+
minimum?: number;
|
|
20
|
+
maximum?: number;
|
|
21
|
+
formatMinimum?: string;
|
|
22
|
+
formatMaximum?: string;
|
|
23
|
+
readOnly?: boolean;
|
|
24
|
+
if?: any;
|
|
25
|
+
then?: any;
|
|
26
|
+
else?: any;
|
|
27
|
+
dependencies?: Record<string, any>;
|
|
28
|
+
dependentSchemas?: Record<string, any>;
|
|
29
|
+
}
|
|
30
|
+
export interface ComponentInfo {
|
|
31
|
+
name: string;
|
|
32
|
+
composite?: boolean;
|
|
33
|
+
shouldDebounce?: boolean;
|
|
34
|
+
emitsBlur?: boolean;
|
|
35
|
+
focusable?: boolean;
|
|
36
|
+
itemsBased?: boolean;
|
|
37
|
+
multipleCompat?: boolean;
|
|
38
|
+
schema?: any;
|
|
39
|
+
isFileInput?: boolean;
|
|
40
|
+
hintable?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface ValidateLayoutKeyword {
|
|
43
|
+
(layoutKeyword: any): layoutKeyword is LayoutKeyword;
|
|
44
|
+
errors: any;
|
|
45
|
+
}
|
|
46
|
+
export interface ValidateNormalizedLayout {
|
|
47
|
+
(layout: any): layout is NormalizedLayout;
|
|
48
|
+
errors: any;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAEpE,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,WAAW,CAAC,EAAE,aAAa,CAAA;IAC3B,uBAAuB,CAAC,EAAE,aAAa,CAAA;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAChC,iBAA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Z;AAED,MAAM,WAAW,wBAAwB;IACvC,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,gBAAgB,CAAA;IACzC,MAAM,EAAE,GAAG,CAAA;CACZ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {import('./types.js').ComponentInfo} component
|
|
3
|
+
* @returns {import('ajv').ValidateFunction}
|
|
4
|
+
*/
|
|
5
|
+
export function getComponentValidate(component: import("./types.js").ComponentInfo): import("ajv").ValidateFunction;
|
|
6
|
+
export const ajv: ajvModule.Ajv2019;
|
|
7
|
+
import ajvModule from 'ajv/dist/2019.js';
|
|
8
|
+
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../src/validate.js"],"names":[],"mappings":"AAgCA;;;GAGG;AACH,gDAHW,OAAO,YAAY,EAAE,aAAa,GAChC,OAAO,KAAK,EAAE,gBAAgB,CAO1C;AA9BD,oCAUE;sBArBoB,kBAAkB"}
|