@tinywork/glass 1.0.21 → 1.0.23
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/index.d.ts +4 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OutgoingHttpHeaders } from "node:http";
|
|
1
|
+
import type { OutgoingHttpHeaders, IncomingHttpHeaders } from "node:http";
|
|
2
2
|
|
|
3
3
|
type IGlassExtensionEvent<T> = (params: T) => Promise<T>;
|
|
4
4
|
type IGlassExtensionInvokeResponse<T> = Promise<{
|
|
@@ -313,6 +313,8 @@ declare global {
|
|
|
313
313
|
body?: any;
|
|
314
314
|
};
|
|
315
315
|
isLocal?: boolean;
|
|
316
|
+
headers?: IncomingHttpHeaders;
|
|
317
|
+
rule?: RuleSchema;
|
|
316
318
|
}>;
|
|
317
319
|
/** 在执行请求用例时触发,用于修改config */
|
|
318
320
|
onRequestExec?: IGlassExtensionEvent<{
|
|
@@ -380,7 +382,7 @@ declare global {
|
|
|
380
382
|
onCaseDefault?: IGlassExtensionEvent<{
|
|
381
383
|
docs: DocSchema[];
|
|
382
384
|
log?: NetLog;
|
|
383
|
-
caseData?: Case
|
|
385
|
+
caseData?: Partial<Case>;
|
|
384
386
|
}>;
|
|
385
387
|
}
|
|
386
388
|
|