Skip to content

Commit 00194cf

Browse files
committed
修改.d.ts文件
1 parent bea8c03 commit 00194cf

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

index.d.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
export declare class KsMock {
2+
public option: any;
3+
constructor(option: any);
4+
public apply(compiler: any): void;
5+
public server(option?: any): void;
6+
}
17
export namespace mock {
2-
interface anyObject {
3-
[prop: string]: any
8+
interface anyObject<T=any> {
9+
[prop: string]: T
410
}
511
type apiFunc = (
612
method: string,
@@ -33,4 +39,5 @@ export namespace mock {
3339
get?: anyObject;
3440
[prop: string]: any;
3541
}
36-
}
42+
}
43+
export default KsMock

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ks-mock",
3-
"version": "1.3.2",
3+
"version": "1.3.3",
44
"description": "mock server 模拟后端API接口",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)