@tinywork/glass 1.0.25 → 1.0.27
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 +6 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -298,7 +298,7 @@ declare global {
|
|
|
298
298
|
resourceType?: ResourceType;
|
|
299
299
|
response?: any;
|
|
300
300
|
rule?: RuleSchema;
|
|
301
|
-
otherRules?:
|
|
301
|
+
otherRules?: RuleSchema[];
|
|
302
302
|
defaultRule?: RuleSchema;
|
|
303
303
|
isImportant?: boolean;
|
|
304
304
|
duration?: number;
|
|
@@ -331,6 +331,11 @@ declare global {
|
|
|
331
331
|
params?: Record<string, any>;
|
|
332
332
|
data?: any;
|
|
333
333
|
}>;
|
|
334
|
+
/** 用来流式输出 */
|
|
335
|
+
onStreamEvent?: IGlassExtensionEvent<{
|
|
336
|
+
text?: string;
|
|
337
|
+
duration?: number;
|
|
338
|
+
}>;
|
|
334
339
|
|
|
335
340
|
/** 在用例批量执行前触发 */
|
|
336
341
|
beforeCasesExec?: IGlassExtensionEvent<{ list: Case[] }>;
|