Skip to content

Commit 9c11a92

Browse files
committed
update: types
1 parent 00f2941 commit 9c11a92

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const id2 = simulate.load('/path/to/component', 'custom-comp', {
6868

6969
| 属性名 | 类型 | 默认值 | 描述 |
7070
|---|---|---|---|
71-
| compilerOptions | Number | 1024 * 1024 | 执行编译时输出缓存区大小 |
71+
| maxBuffer | Number | 1024 * 1024 | 执行编译时输出缓存区大小 |
7272
| wxmlList | Array\<String\> | | rootPath 下需要编译的 wxml 文件,默认取 rootPath 下所有 wxml 文件 |
7373
| wxsList | Array\<String\> | | rootPath 下需要编译的 wxs 文件,默认取 rootPath 下所有 wxs 文件 |
7474

index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ export {
99
create as render,
1010
} from "j-component";
1111

12+
export interface CompilerOptions {
13+
maxBuffer?: number;
14+
wxmlList?: Array<string>;
15+
wxsList?: Array<string>;
16+
}
1217
export interface LoadOptions {
1318
compiler?: "official" | "simulate";
19+
compilerOptions?: CompilerOptions;
1420
rootPath?: string;
1521
less?: boolean;
1622
usingComponents?: Object;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "miniprogram-simulate",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "tools for miniprogram custom component unit test",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)