@@ -2,6 +2,11 @@ import { performance } from 'node:perf_hooks';
22
33import * as bencho from 'bencho' ;
44
5+ import type * as currentVersion from '..' ;
6+ import type * as previousVersion from 'fast-glob' ;
7+ import type * as glob from 'glob' ;
8+ import type * as fdir from 'fdir' ;
9+
510export function timeStart ( ) : number {
611 return performance . now ( ) ;
712}
@@ -14,23 +19,19 @@ export function getMemory(): number {
1419 return process . memoryUsage ( ) . heapUsed ;
1520}
1621
17- // eslint-disable-next-line @typescript-eslint/consistent-type-imports
18- export function importCurrentFastGlob ( ) : Promise < typeof import ( '..' ) > {
22+ export function importCurrentFastGlob ( ) : Promise < typeof currentVersion > {
1923 return import ( '..' ) ;
2024}
2125
22- // eslint-disable-next-line @typescript-eslint/consistent-type-imports
23- export function importPreviousFastGlob ( ) : Promise < typeof import ( 'fast-glob' ) > {
26+ export function importPreviousFastGlob ( ) : Promise < typeof previousVersion > {
2427 return import ( 'fast-glob' ) ;
2528}
2629
27- // eslint-disable-next-line @typescript-eslint/consistent-type-imports
28- export function importNodeGlob ( ) : Promise < typeof import ( 'glob' ) > {
30+ export function importNodeGlob ( ) : Promise < typeof glob > {
2931 return import ( 'glob' ) ;
3032}
3133
32- // eslint-disable-next-line @typescript-eslint/consistent-type-imports
33- export function importFdir ( ) : Promise < typeof import ( 'fdir' ) > {
34+ export function importFdir ( ) : Promise < typeof fdir > {
3435 return import ( 'fdir' ) ;
3536}
3637
0 commit comments