@qse/edu-scripts 1.14.1 → 1.14.2
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/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RequestHandler } from 'express';
|
|
2
|
+
type Method = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE';
|
|
3
|
+
type API = string;
|
|
4
|
+
export type MockConfig = Record<`${Method} ${API}`, string | number | null | undefined | boolean | Record<string, any> | RequestHandler>;
|
|
5
|
+
export declare function defineMock(config: MockConfig): MockConfig;
|
|
6
|
+
export {};
|
package/lib/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qse/edu-scripts",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"author": "Kinoko",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "教育工程化基础框架",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@types/yargs": "^17.0.24",
|
|
100
100
|
"dumi": "^1.1.50",
|
|
101
101
|
"eslint-config-qsb-react": "^1.1.1",
|
|
102
|
-
"father": "^4.3.
|
|
102
|
+
"father": "^4.3.5",
|
|
103
103
|
"jest": "^28.1.3"
|
|
104
104
|
}
|
|
105
105
|
}
|