@weapp-core/schematics 1.0.13 → 2.0.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/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -352,12 +352,31 @@ interface Theme$1 {
|
|
|
352
352
|
};
|
|
353
353
|
[k: string]: unknown;
|
|
354
354
|
}
|
|
355
|
+
/**
|
|
356
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
357
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
358
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
359
|
+
*/
|
|
360
|
+
/**
|
|
361
|
+
* 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
|
|
362
|
+
*/
|
|
363
|
+
interface Plugin$1 {
|
|
364
|
+
publicComponents?: {
|
|
365
|
+
[k: string]: string;
|
|
366
|
+
};
|
|
367
|
+
pages?: {
|
|
368
|
+
[k: string]: string;
|
|
369
|
+
};
|
|
370
|
+
main?: string;
|
|
371
|
+
[k: string]: unknown;
|
|
372
|
+
}
|
|
355
373
|
|
|
356
374
|
type App = App$1;
|
|
357
375
|
type Component = Component$1;
|
|
358
376
|
type Page = Page$1;
|
|
359
377
|
type Sitemap = Sitemap$1;
|
|
360
378
|
type Theme = Theme$1;
|
|
379
|
+
type Plugin = Plugin$1;
|
|
361
380
|
|
|
362
381
|
type GenerateType = 'app' | 'page' | 'component';
|
|
363
382
|
declare function generateJs(type?: GenerateType): "App({})" | "Page({})" | "Component({})";
|
|
@@ -365,4 +384,4 @@ declare function generateWxss(): string;
|
|
|
365
384
|
declare function generateWxml(filepath?: string): string;
|
|
366
385
|
declare function generateJson(type?: GenerateType, ext?: 'json' | 'js' | 'ts' | (string & {})): string;
|
|
367
386
|
|
|
368
|
-
export { type App, type Component, type GenerateType, type Page, type Sitemap, type Theme, generateJs, generateJson, generateWxml, generateWxss };
|
|
387
|
+
export { type App, type Component, type GenerateType, type Page, type Plugin, type Sitemap, type Theme, generateJs, generateJson, generateWxml, generateWxss };
|
package/dist/index.d.ts
CHANGED
|
@@ -352,12 +352,31 @@ interface Theme$1 {
|
|
|
352
352
|
};
|
|
353
353
|
[k: string]: unknown;
|
|
354
354
|
}
|
|
355
|
+
/**
|
|
356
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
357
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
358
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
359
|
+
*/
|
|
360
|
+
/**
|
|
361
|
+
* 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
|
|
362
|
+
*/
|
|
363
|
+
interface Plugin$1 {
|
|
364
|
+
publicComponents?: {
|
|
365
|
+
[k: string]: string;
|
|
366
|
+
};
|
|
367
|
+
pages?: {
|
|
368
|
+
[k: string]: string;
|
|
369
|
+
};
|
|
370
|
+
main?: string;
|
|
371
|
+
[k: string]: unknown;
|
|
372
|
+
}
|
|
355
373
|
|
|
356
374
|
type App = App$1;
|
|
357
375
|
type Component = Component$1;
|
|
358
376
|
type Page = Page$1;
|
|
359
377
|
type Sitemap = Sitemap$1;
|
|
360
378
|
type Theme = Theme$1;
|
|
379
|
+
type Plugin = Plugin$1;
|
|
361
380
|
|
|
362
381
|
type GenerateType = 'app' | 'page' | 'component';
|
|
363
382
|
declare function generateJs(type?: GenerateType): "App({})" | "Page({})" | "Component({})";
|
|
@@ -365,4 +384,4 @@ declare function generateWxss(): string;
|
|
|
365
384
|
declare function generateWxml(filepath?: string): string;
|
|
366
385
|
declare function generateJson(type?: GenerateType, ext?: 'json' | 'js' | 'ts' | (string & {})): string;
|
|
367
386
|
|
|
368
|
-
export { type App, type Component, type GenerateType, type Page, type Sitemap, type Theme, generateJs, generateJson, generateWxml, generateWxss };
|
|
387
|
+
export { type App, type Component, type GenerateType, type Page, type Plugin, type Sitemap, type Theme, generateJs, generateJson, generateWxml, generateWxss };
|