File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
private/react-native-fantom/src Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import {
18
18
type TaskResult ,
19
19
} from 'tinybench' ;
20
20
21
- type SuiteOptions = $ReadOnly < {
21
+ export type SuiteOptions = $ReadOnly < {
22
22
minIterations ?: number ,
23
23
minDuration ?: number ,
24
24
warmup ?: boolean ,
@@ -28,7 +28,9 @@ type SuiteOptions = $ReadOnly<{
28
28
testOnly ?: boolean ,
29
29
} > ;
30
30
31
- type TestOptions = $ReadOnly < {
31
+ export type TestOptions = FnOptions ;
32
+
33
+ type InternalTestOptions = $ReadOnly < {
32
34
...FnOptions ,
33
35
only ?: boolean ,
34
36
} > ;
@@ -71,7 +73,7 @@ interface SuiteAPI {
71
73
interface TestTask {
72
74
name : string ;
73
75
fn : ( ) = > void ;
74
- options : TestOptions | void ;
76
+ options : InternalTestOptions | void ;
75
77
}
76
78
77
79
export function suite(
Original file line number Diff line number Diff line change @@ -567,6 +567,11 @@ export function enqueueModalSizeUpdate(
567
567
568
568
export const unstable_benchmark = Benchmark ;
569
569
570
+ export type {
571
+ SuiteOptions as BenchmarkSuiteOptions ,
572
+ TestOptions as BenchmarkTestOptions ,
573
+ } from './Benchmark' ;
574
+
570
575
/**
571
576
* Quick and dirty polyfills required by tinybench.
572
577
*/
You can’t perform that action at this time.
0 commit comments