We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bea8c03 commit 00194cfCopy full SHA for 00194cf
index.d.ts
@@ -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
+}
7
export namespace mock {
- interface anyObject {
- [prop: string]: any
8
+ interface anyObject<T=any> {
9
+ [prop: string]: T
10
}
11
type apiFunc = (
12
method: string,
@@ -33,4 +39,5 @@ export namespace mock {
33
39
get?: anyObject;
34
40
[prop: string]: any;
35
41
36
-}
42
43
+export default KsMock
package.json
@@ -1,6 +1,6 @@
{
"name": "ks-mock",
- "version": "1.3.2",
+ "version": "1.3.3",
"description": "mock server 模拟后端API接口",
"main": "index.js",
"scripts": {
0 commit comments