@weapp-core/schematics 6.0.1 → 6.0.3

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/dist/index.d.cts CHANGED
@@ -1,6 +1,14 @@
1
+ //#region src/generator.d.ts
2
+ /**
3
+ * @description 生成模板的目标类型
4
+ */
1
5
  type GenerateType = 'app' | 'page' | 'component';
6
+ /**
7
+ * @description JSON 输出扩展名
8
+ */
2
9
  type JsonExt = 'json' | 'js' | 'ts' | (string & {});
3
-
10
+ //#endregion
11
+ //#region src/type.auto.d.ts
4
12
  /**
5
13
  * This file was automatically generated by json-schema-to-typescript.
6
14
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
@@ -10,247 +18,229 @@ type JsonExt = 'json' | 'js' | 'ts' | (string & {});
10
18
  * 全局配置, 小程序根目录下的 app.json 文件用来对微信小程序进行全局配置。
11
19
  */
12
20
  interface App$1 {
13
- appBar?: {
14
- [k: string]: unknown;
15
- };
16
- componentFramework?: string;
17
- convertRpxToVw?: boolean;
18
- darkmode?: boolean;
19
- debug?: boolean;
20
- debugOptions?: {
21
- [k: string]: unknown;
22
- };
23
- embeddedAppIdList?: string[];
24
- enablePassiveEvent?: {
25
- [k: string]: unknown;
26
- } | boolean;
27
- entranceDeclare?: {
28
- [k: string]: unknown;
29
- };
30
- /**
31
- * 指定小程序的默认启动路径(首页),常见情景是从微信聊天列表页下拉启动、小程序列表启动等。如果不填,将默认为 pages 列表的第一项。不支持带页面路径参数。
32
- */
33
- entryPagePath?: string;
34
- functionalPages?: boolean;
35
- halfPage?: {
36
- [k: string]: unknown;
37
- };
38
- lazyCodeLoading?: string;
39
- miniApp?: {
40
- [k: string]: unknown;
41
- };
42
- networkTimeout?: {
43
- connectSocket?: number;
44
- downloadFile?: number;
45
- request?: number;
46
- uploadFile?: number;
47
- [k: string]: unknown;
21
+ appBar?: {
22
+ [k: string]: unknown;
23
+ };
24
+ componentFramework?: string;
25
+ convertRpxToVw?: boolean;
26
+ darkmode?: boolean;
27
+ debug?: boolean;
28
+ debugOptions?: {
29
+ [k: string]: unknown;
30
+ };
31
+ embeddedAppIdList?: string[];
32
+ enablePassiveEvent?: {
33
+ [k: string]: unknown;
34
+ } | boolean;
35
+ entranceDeclare?: {
36
+ [k: string]: unknown;
37
+ };
38
+ /**
39
+ * 指定小程序的默认启动路径(首页),常见情景是从微信聊天列表页下拉启动、小程序列表启动等。如果不填,将默认为 pages 列表的第一项。不支持带页面路径参数。
40
+ */
41
+ entryPagePath?: string;
42
+ functionalPages?: boolean;
43
+ halfPage?: {
44
+ [k: string]: unknown;
45
+ };
46
+ lazyCodeLoading?: string;
47
+ miniApp?: {
48
+ [k: string]: unknown;
49
+ };
50
+ networkTimeout?: {
51
+ connectSocket?: number;
52
+ downloadFile?: number;
53
+ request?: number;
54
+ uploadFile?: number;
55
+ [k: string]: unknown;
56
+ };
57
+ /**
58
+ * 用于指定小程序由哪些页面组成,每一项都对应一个页面的 路径(含文件名) 信息。文件名不需要写文件后缀,框架会自动去寻找对应位置的 .json, .js, .wxml, .wxss 四个文件进行处理。
59
+ */
60
+ pages: string[];
61
+ permission?: {
62
+ [k: string]: unknown;
63
+ };
64
+ plugins?: {
65
+ [k: string]: unknown;
66
+ };
67
+ preloadRule?: {
68
+ [k: string]: unknown;
69
+ };
70
+ renderer?: "webview" | "skyline";
71
+ rendererOptions?: {
72
+ skyline?: {
73
+ defaultContentBox?: boolean;
74
+ defaultDisplayBlock?: boolean;
75
+ disableABTest?: boolean;
76
+ [k: string]: unknown;
48
77
  };
78
+ [k: string]: unknown;
79
+ };
80
+ requiredBackgroundModes?: string[];
81
+ requiredPrivateInfos?: string[];
82
+ resizable?: boolean;
83
+ resolveAlias?: {
84
+ [k: string]: unknown;
85
+ };
86
+ serviceProviderTicket?: string;
87
+ singlePage?: {
88
+ [k: string]: unknown;
89
+ };
90
+ sitemapLocation?: string;
91
+ static?: {
92
+ [k: string]: unknown;
93
+ };
94
+ style?: string;
95
+ subPackages?: {
96
+ entry?: string;
97
+ independent?: boolean;
98
+ name?: string;
99
+ pages?: string[];
100
+ root?: string;
101
+ [k: string]: unknown;
102
+ }[];
103
+ subpackages?: {
104
+ entry?: string;
105
+ independent?: boolean;
106
+ name?: string;
107
+ pages?: string[];
108
+ root?: string;
109
+ [k: string]: unknown;
110
+ }[];
111
+ supportedMaterials?: {
112
+ [k: string]: unknown;
113
+ };
114
+ tabBar?: {
115
+ backgroundColor: string;
116
+ borderStyle?: "black" | "white";
117
+ color: string;
118
+ custom?: boolean;
49
119
  /**
50
- * 用于指定小程序由哪些页面组成,每一项都对应一个页面的 路径(含文件名) 信息。文件名不需要写文件后缀,框架会自动去寻找对应位置的 .json, .js, .wxml, .wxss 四个文件进行处理。
120
+ * @minItems 2
121
+ * @maxItems 5
51
122
  */
52
- pages: string[];
53
- permission?: {
54
- [k: string]: unknown;
55
- };
56
- plugins?: {
57
- [k: string]: unknown;
58
- };
59
- preloadRule?: {
60
- [k: string]: unknown;
61
- };
62
- renderer?: "webview" | "skyline";
63
- rendererOptions?: {
64
- skyline?: {
65
- defaultContentBox?: boolean;
66
- defaultDisplayBlock?: boolean;
67
- disableABTest?: boolean;
68
- [k: string]: unknown;
69
- };
70
- [k: string]: unknown;
71
- };
72
- requiredBackgroundModes?: string[];
73
- requiredPrivateInfos?: string[];
74
- resizable?: boolean;
75
- resolveAlias?: {
76
- [k: string]: unknown;
77
- };
78
- serviceProviderTicket?: string;
79
- singlePage?: {
80
- [k: string]: unknown;
81
- };
82
- sitemapLocation?: string;
83
- static?: {
84
- [k: string]: unknown;
85
- };
86
- style?: string;
87
- subPackages?: {
88
- entry?: string;
89
- independent?: boolean;
90
- name?: string;
91
- pages?: string[];
92
- root?: string;
93
- [k: string]: unknown;
94
- }[];
95
- subpackages?: {
96
- entry?: string;
97
- independent?: boolean;
98
- name?: string;
99
- pages?: string[];
100
- root?: string;
101
- [k: string]: unknown;
102
- }[];
103
- supportedMaterials?: {
104
- [k: string]: unknown;
105
- };
106
- tabBar?: {
107
- backgroundColor: string;
108
- borderStyle?: "black" | "white";
109
- color: string;
110
- custom?: boolean;
111
- /**
112
- * @minItems 2
113
- * @maxItems 5
114
- */
115
- list: [
116
- {
117
- iconPath?: string;
118
- pagePath: string;
119
- selectedIconPath?: string;
120
- text: string;
121
- [k: string]: unknown;
122
- },
123
- {
124
- iconPath?: string;
125
- pagePath: string;
126
- selectedIconPath?: string;
127
- text: string;
128
- [k: string]: unknown;
129
- }
130
- ] | [
131
- {
132
- iconPath?: string;
133
- pagePath: string;
134
- selectedIconPath?: string;
135
- text: string;
136
- [k: string]: unknown;
137
- },
138
- {
139
- iconPath?: string;
140
- pagePath: string;
141
- selectedIconPath?: string;
142
- text: string;
143
- [k: string]: unknown;
144
- },
145
- {
146
- iconPath?: string;
147
- pagePath: string;
148
- selectedIconPath?: string;
149
- text: string;
150
- [k: string]: unknown;
151
- }
152
- ] | [
153
- {
154
- iconPath?: string;
155
- pagePath: string;
156
- selectedIconPath?: string;
157
- text: string;
158
- [k: string]: unknown;
159
- },
160
- {
161
- iconPath?: string;
162
- pagePath: string;
163
- selectedIconPath?: string;
164
- text: string;
165
- [k: string]: unknown;
166
- },
167
- {
168
- iconPath?: string;
169
- pagePath: string;
170
- selectedIconPath?: string;
171
- text: string;
172
- [k: string]: unknown;
173
- },
174
- {
175
- iconPath?: string;
176
- pagePath: string;
177
- selectedIconPath?: string;
178
- text: string;
179
- [k: string]: unknown;
180
- }
181
- ] | [
182
- {
183
- iconPath?: string;
184
- pagePath: string;
185
- selectedIconPath?: string;
186
- text: string;
187
- [k: string]: unknown;
188
- },
189
- {
190
- iconPath?: string;
191
- pagePath: string;
192
- selectedIconPath?: string;
193
- text: string;
194
- [k: string]: unknown;
195
- },
196
- {
197
- iconPath?: string;
198
- pagePath: string;
199
- selectedIconPath?: string;
200
- text: string;
201
- [k: string]: unknown;
202
- },
203
- {
204
- iconPath?: string;
205
- pagePath: string;
206
- selectedIconPath?: string;
207
- text: string;
208
- [k: string]: unknown;
209
- },
210
- {
211
- iconPath?: string;
212
- pagePath: string;
213
- selectedIconPath?: string;
214
- text: string;
215
- [k: string]: unknown;
216
- }
217
- ];
218
- position?: "bottom" | "top";
219
- selectedColor: string;
220
- [k: string]: unknown;
221
- };
222
- themeLocation?: string;
223
- useExtendedLib?: {
224
- [k: string]: unknown;
225
- };
226
- usingComponents?: {
227
- [k: string]: string;
228
- };
229
- window?: {
230
- backgroundColor?: string;
231
- backgroundColorBottom?: string;
232
- backgroundColorTop?: string;
233
- backgroundTextStyle?: "dark" | "light";
234
- enablePullDownRefresh?: boolean;
235
- handleWebviewPreload?: "static" | "manual" | "auto";
236
- homeButton?: boolean;
237
- initialRenderingCache?: "static" | "dynamic";
238
- navigationBarBackgroundColor?: string;
239
- navigationBarTextStyle?: string;
240
- navigationBarTitleText?: string;
241
- navigationStyle?: "default" | "custom";
242
- onReachBottomDistance?: number;
243
- pageOrientation?: "portrait" | "auto" | "landscape";
244
- restartStrategy?: "homePage" | "homePageAndLatestPage";
245
- visualEffectInBackground?: "none" | "hidden";
246
- [k: string]: unknown;
247
- };
248
- workers?: string | {
249
- isSubpackage?: boolean;
250
- path?: string;
251
- [k: string]: unknown;
252
- };
123
+ list: [{
124
+ iconPath?: string;
125
+ pagePath: string;
126
+ selectedIconPath?: string;
127
+ text: string;
128
+ [k: string]: unknown;
129
+ }, {
130
+ iconPath?: string;
131
+ pagePath: string;
132
+ selectedIconPath?: string;
133
+ text: string;
134
+ [k: string]: unknown;
135
+ }] | [{
136
+ iconPath?: string;
137
+ pagePath: string;
138
+ selectedIconPath?: string;
139
+ text: string;
140
+ [k: string]: unknown;
141
+ }, {
142
+ iconPath?: string;
143
+ pagePath: string;
144
+ selectedIconPath?: string;
145
+ text: string;
146
+ [k: string]: unknown;
147
+ }, {
148
+ iconPath?: string;
149
+ pagePath: string;
150
+ selectedIconPath?: string;
151
+ text: string;
152
+ [k: string]: unknown;
153
+ }] | [{
154
+ iconPath?: string;
155
+ pagePath: string;
156
+ selectedIconPath?: string;
157
+ text: string;
158
+ [k: string]: unknown;
159
+ }, {
160
+ iconPath?: string;
161
+ pagePath: string;
162
+ selectedIconPath?: string;
163
+ text: string;
164
+ [k: string]: unknown;
165
+ }, {
166
+ iconPath?: string;
167
+ pagePath: string;
168
+ selectedIconPath?: string;
169
+ text: string;
170
+ [k: string]: unknown;
171
+ }, {
172
+ iconPath?: string;
173
+ pagePath: string;
174
+ selectedIconPath?: string;
175
+ text: string;
176
+ [k: string]: unknown;
177
+ }] | [{
178
+ iconPath?: string;
179
+ pagePath: string;
180
+ selectedIconPath?: string;
181
+ text: string;
182
+ [k: string]: unknown;
183
+ }, {
184
+ iconPath?: string;
185
+ pagePath: string;
186
+ selectedIconPath?: string;
187
+ text: string;
188
+ [k: string]: unknown;
189
+ }, {
190
+ iconPath?: string;
191
+ pagePath: string;
192
+ selectedIconPath?: string;
193
+ text: string;
194
+ [k: string]: unknown;
195
+ }, {
196
+ iconPath?: string;
197
+ pagePath: string;
198
+ selectedIconPath?: string;
199
+ text: string;
200
+ [k: string]: unknown;
201
+ }, {
202
+ iconPath?: string;
203
+ pagePath: string;
204
+ selectedIconPath?: string;
205
+ text: string;
206
+ [k: string]: unknown;
207
+ }];
208
+ position?: "bottom" | "top";
209
+ selectedColor: string;
210
+ [k: string]: unknown;
211
+ };
212
+ themeLocation?: string;
213
+ useExtendedLib?: {
253
214
  [k: string]: unknown;
215
+ };
216
+ usingComponents?: {
217
+ [k: string]: string;
218
+ };
219
+ window?: {
220
+ backgroundColor?: string;
221
+ backgroundColorBottom?: string;
222
+ backgroundColorTop?: string;
223
+ backgroundTextStyle?: "dark" | "light";
224
+ enablePullDownRefresh?: boolean;
225
+ handleWebviewPreload?: "static" | "manual" | "auto";
226
+ homeButton?: boolean;
227
+ initialRenderingCache?: "static" | "dynamic";
228
+ navigationBarBackgroundColor?: string;
229
+ navigationBarTextStyle?: string;
230
+ navigationBarTitleText?: string;
231
+ navigationStyle?: "default" | "custom";
232
+ onReachBottomDistance?: number;
233
+ pageOrientation?: "portrait" | "auto" | "landscape";
234
+ restartStrategy?: "homePage" | "homePageAndLatestPage";
235
+ visualEffectInBackground?: "none" | "hidden";
236
+ [k: string]: unknown;
237
+ };
238
+ workers?: string | {
239
+ isSubpackage?: boolean;
240
+ path?: string;
241
+ [k: string]: unknown;
242
+ };
243
+ [k: string]: unknown;
254
244
  }
255
245
  /**
256
246
  * This file was automatically generated by json-schema-to-typescript.
@@ -261,19 +251,19 @@ interface App$1 {
261
251
  * 自定义组件配置
262
252
  */
263
253
  interface Component$1 {
264
- component?: boolean;
265
- componentFramework?: string;
266
- componentGenerics?: {
267
- [k: string]: unknown;
268
- };
269
- componentPlaceholder?: {
270
- [k: string]: unknown;
271
- };
272
- styleIsolation?: "isolated" | "apply-shared" | "shared";
273
- usingComponents?: {
274
- [k: string]: string;
275
- };
254
+ component?: boolean;
255
+ componentFramework?: string;
256
+ componentGenerics?: {
257
+ [k: string]: unknown;
258
+ };
259
+ componentPlaceholder?: {
276
260
  [k: string]: unknown;
261
+ };
262
+ styleIsolation?: "isolated" | "apply-shared" | "shared";
263
+ usingComponents?: {
264
+ [k: string]: string;
265
+ };
266
+ [k: string]: unknown;
277
267
  }
278
268
  /**
279
269
  * This file was automatically generated by json-schema-to-typescript.
@@ -284,50 +274,50 @@ interface Component$1 {
284
274
  * 页面配置, 支持对单个页面进行配置,可以在页面对应的 .json 文件来对本页面的表现进行配置
285
275
  */
286
276
  interface Page$1 {
287
- backgroundColor?: string;
288
- backgroundColorBottom?: string;
289
- backgroundColorContent?: string;
290
- backgroundColorTop?: string;
291
- backgroundTextStyle?: "dark" | "light";
292
- componentFramework?: string;
293
- componentPlaceholder?: {
294
- [k: string]: unknown;
295
- };
296
- disableScroll?: boolean;
297
- enablePassiveEvent?: {
298
- [k: string]: unknown;
299
- } | boolean;
300
- enablePullDownRefresh?: boolean;
301
- handleWebviewPreload?: "static" | "manual" | "auto";
302
- homeButton?: boolean;
303
- initialRenderingCache?: "static" | "dynamic";
304
- navigationBarBackgroundColor?: string;
305
- navigationBarTextStyle?: string;
306
- navigationBarTitleText?: string;
307
- navigationStyle?: "default" | "custom";
308
- onReachBottomDistance?: number;
309
- pageOrientation?: "portrait" | "auto" | "landscape";
310
- renderer?: "webview" | "skyline";
311
- rendererOptions?: {
312
- skyline?: {
313
- defaultContentBox?: boolean;
314
- defaultDisplayBlock?: boolean;
315
- disableABTest?: boolean;
316
- [k: string]: unknown;
317
- };
318
- [k: string]: unknown;
319
- };
320
- restartStrategy?: "homePage" | "homePageAndLatestPage";
321
- singlePage?: {
322
- [k: string]: unknown;
323
- };
324
- style?: string;
325
- styleIsolation?: "page-isolated" | "page-apply-shared" | "page-shared";
326
- usingComponents?: {
327
- [k: string]: string;
277
+ backgroundColor?: string;
278
+ backgroundColorBottom?: string;
279
+ backgroundColorContent?: string;
280
+ backgroundColorTop?: string;
281
+ backgroundTextStyle?: "dark" | "light";
282
+ componentFramework?: string;
283
+ componentPlaceholder?: {
284
+ [k: string]: unknown;
285
+ };
286
+ disableScroll?: boolean;
287
+ enablePassiveEvent?: {
288
+ [k: string]: unknown;
289
+ } | boolean;
290
+ enablePullDownRefresh?: boolean;
291
+ handleWebviewPreload?: "static" | "manual" | "auto";
292
+ homeButton?: boolean;
293
+ initialRenderingCache?: "static" | "dynamic";
294
+ navigationBarBackgroundColor?: string;
295
+ navigationBarTextStyle?: string;
296
+ navigationBarTitleText?: string;
297
+ navigationStyle?: "default" | "custom";
298
+ onReachBottomDistance?: number;
299
+ pageOrientation?: "portrait" | "auto" | "landscape";
300
+ renderer?: "webview" | "skyline";
301
+ rendererOptions?: {
302
+ skyline?: {
303
+ defaultContentBox?: boolean;
304
+ defaultDisplayBlock?: boolean;
305
+ disableABTest?: boolean;
306
+ [k: string]: unknown;
328
307
  };
329
- visualEffectInBackground?: "none" | "hidden";
330
308
  [k: string]: unknown;
309
+ };
310
+ restartStrategy?: "homePage" | "homePageAndLatestPage";
311
+ singlePage?: {
312
+ [k: string]: unknown;
313
+ };
314
+ style?: string;
315
+ styleIsolation?: "page-isolated" | "page-apply-shared" | "page-shared";
316
+ usingComponents?: {
317
+ [k: string]: string;
318
+ };
319
+ visualEffectInBackground?: "none" | "hidden";
320
+ [k: string]: unknown;
331
321
  }
332
322
  /**
333
323
  * This file was automatically generated by json-schema-to-typescript.
@@ -338,14 +328,14 @@ interface Page$1 {
338
328
  * https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/sitemap.html
339
329
  */
340
330
  interface Sitemap$1 {
341
- rules: {
342
- action?: "allow" | "disallow";
343
- matching?: "exact" | "inclusive" | "exclusive" | "partial";
344
- page: string;
345
- params?: string[];
346
- priority?: number;
347
- }[];
348
- [k: string]: unknown;
331
+ rules: {
332
+ action?: "allow" | "disallow";
333
+ matching?: "exact" | "inclusive" | "exclusive" | "partial";
334
+ page: string;
335
+ params?: string[];
336
+ priority?: number;
337
+ }[];
338
+ [k: string]: unknown;
349
339
  }
350
340
  /**
351
341
  * This file was automatically generated by json-schema-to-typescript.
@@ -353,13 +343,13 @@ interface Sitemap$1 {
353
343
  * and run json-schema-to-typescript to regenerate this file.
354
344
  */
355
345
  interface Theme$1 {
356
- dark: {
357
- [k: string]: unknown;
358
- };
359
- light: {
360
- [k: string]: unknown;
361
- };
346
+ dark: {
362
347
  [k: string]: unknown;
348
+ };
349
+ light: {
350
+ [k: string]: unknown;
351
+ };
352
+ [k: string]: unknown;
363
353
  }
364
354
  /**
365
355
  * This file was automatically generated by json-schema-to-typescript.
@@ -370,52 +360,85 @@ interface Theme$1 {
370
360
  * https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/development.html#%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6
371
361
  */
372
362
  interface Plugin$1 {
373
- main?: string;
374
- pages?: {
375
- [k: string]: string;
376
- };
377
- publicComponents?: {
378
- [k: string]: string;
379
- };
380
- [k: string]: unknown;
363
+ main?: string;
364
+ pages?: {
365
+ [k: string]: string;
366
+ };
367
+ publicComponents?: {
368
+ [k: string]: string;
369
+ };
370
+ [k: string]: unknown;
381
371
  }
382
-
372
+ //#endregion
373
+ //#region src/type.d.ts
374
+ /**
375
+ * @description app.json 类型定义
376
+ */
383
377
  type App = App$1;
378
+ /**
379
+ * @description component.json 类型定义
380
+ */
384
381
  type Component = Component$1;
382
+ /**
383
+ * @description page.json 类型定义
384
+ */
385
385
  type Page = Page$1;
386
+ /**
387
+ * @description sitemap.json 类型定义
388
+ */
386
389
  type Sitemap = Sitemap$1;
390
+ /**
391
+ * @description theme.json 类型定义
392
+ */
387
393
  type Theme = Theme$1;
394
+ /**
395
+ * @description plugin.json 类型定义
396
+ */
388
397
  type Plugin = Plugin$1;
389
-
398
+ //#endregion
399
+ //#region src/json.d.ts
390
400
  declare const JSON_SCHEMA_DEFINITIONS: readonly [{
391
- filename: "app.json";
392
- typeName: "App";
393
- schema: unknown;
401
+ filename: "app.json";
402
+ typeName: "App";
403
+ schema: unknown;
394
404
  }, {
395
- filename: "component.json";
396
- typeName: "Component";
397
- schema: unknown;
405
+ filename: "component.json";
406
+ typeName: "Component";
407
+ schema: unknown;
398
408
  }, {
399
- filename: "page.json";
400
- typeName: "Page";
401
- schema: unknown;
409
+ filename: "page.json";
410
+ typeName: "Page";
411
+ schema: unknown;
402
412
  }, {
403
- filename: "sitemap.json";
404
- typeName: "Sitemap";
405
- schema: unknown;
413
+ filename: "sitemap.json";
414
+ typeName: "Sitemap";
415
+ schema: unknown;
406
416
  }, {
407
- filename: "theme.json";
408
- typeName: "Theme";
409
- schema: unknown;
417
+ filename: "theme.json";
418
+ typeName: "Theme";
419
+ schema: unknown;
410
420
  }, {
411
- filename: "plugin.json";
412
- typeName: "Plugin";
413
- schema: unknown;
421
+ filename: "plugin.json";
422
+ typeName: "Plugin";
423
+ schema: unknown;
414
424
  }];
415
-
425
+ //#endregion
426
+ //#region src/index.d.ts
427
+ /**
428
+ * @description 生成 JS 模板(app/page/component)
429
+ */
416
430
  declare function generateJs(type?: GenerateType): "App({})" | "Page({})" | "Component({})";
431
+ /**
432
+ * @description 生成 WXSS 模板
433
+ */
417
434
  declare function generateWxss(): string;
435
+ /**
436
+ * @description 生成 WXML 模板
437
+ */
418
438
  declare function generateWxml(filepath?: string): string;
439
+ /**
440
+ * @description 生成 JSON/JS/TS 模板
441
+ */
419
442
  declare function generateJson(type?: GenerateType, ext?: JsonExt): string;
420
-
421
- export { type App, type Component, type GenerateType, JSON_SCHEMA_DEFINITIONS, type Page, type Plugin, type Sitemap, type Theme, generateJs, generateJson, generateWxml, generateWxss };
443
+ //#endregion
444
+ export { type App, type Component, type GenerateType, JSON_SCHEMA_DEFINITIONS, type Page, type Plugin, type Sitemap, type Theme, generateJs, generateJson, generateWxml, generateWxss };