Skip to content

Commit

Permalink
ref: Type
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Mar 13, 2020
1 parent bca2154 commit acd1d6f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/utils/src/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,7 @@ const performanceFallback: CrossPlatformPerformance = {
export const crossPlatformPerformance: CrossPlatformPerformance = (() => {
if (isNodeEnv()) {
try {
// tslint:disable-next-line: no-unsafe-any
const perfHooks = dynamicRequire(module, 'perf_hooks');
// tslint:disable-next-line: no-unsafe-any
const perfHooks = dynamicRequire(module, 'perf_hooks') as { performance: CrossPlatformPerformance };
return perfHooks.performance;
} catch (_) {
return performanceFallback;
Expand Down

0 comments on commit acd1d6f

Please sign in to comment.