Skip to content

Commit abc828f

Browse files
H4adRafaelGSS
authored andcommitted
chore(index.d.ts): update exported types for plugins
1 parent 52bb536 commit abc828f

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

index.d.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ export declare namespace BenchNode {
4848
isSupported?(): boolean;
4949
beforeClockTemplate?(varNames: PluginHookVarNames): string[];
5050
afterClockTemplate?(varNames: PluginHookVarNames): string[];
51+
onCompleteClock?(result: BenchmarkResult): string[];
5152
onCompleteBenchmark?(result: BenchmarkResult): void;
5253
toString?(): string;
54+
getReport?(): string;
55+
getResult?(benchmarkName: string): Record<string, any>;
5356
}
5457

5558
class Suite {
@@ -63,20 +66,31 @@ export declare namespace BenchNode {
6366
isSupported(): boolean;
6467
beforeClockTemplate(varNames: PluginHookVarNames): string[];
6568
toString(): string;
69+
getReport(): string;
6670
}
6771

6872
class V8GetOptimizationStatus implements Plugin {
6973
isSupported(): boolean;
70-
beforeClockTemplate(varNames: PluginHookVarNames): string[];
7174
afterClockTemplate(varNames: PluginHookVarNames): string[];
7275
onCompleteBenchmark(result: BenchmarkResult): void;
7376
toString(): string;
77+
getReport(): string;
78+
getResult?(benchmarkName: string): Record<string, any>;
7479
}
7580

7681
class V8OptimizeOnNextCallPlugin implements Plugin {
7782
isSupported(): boolean;
7883
beforeClockTemplate(varNames: PluginHookVarNames): string[];
7984
toString(): string;
85+
getReport(): string;
86+
}
87+
88+
class MemoryPlugin implements Plugin {
89+
isSupported(): boolean;
90+
beforeClockTemplate(varNames: PluginHookVarNames): string[];
91+
afterClockTemplate(varNames: PluginHookVarNames): string[];
92+
onCompleteBenchmark?(result: BenchmarkResult): void;
93+
toString(): string;
8094
}
8195
}
8296

@@ -91,3 +105,4 @@ export declare class Suite extends BenchNode.Suite {}
91105
export declare class V8NeverOptimizePlugin extends BenchNode.V8NeverOptimizePlugin {}
92106
export declare class V8GetOptimizationStatus extends BenchNode.V8GetOptimizationStatus {}
93107
export declare class V8OptimizeOnNextCallPlugin extends BenchNode.V8OptimizeOnNextCallPlugin {}
108+
export declare class MemoryPlugin extends BenchNode.MemoryPlugin {}

0 commit comments

Comments
 (0)