Skip to content

Commit

Permalink
refactor(bench): update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Feb 23, 2020
1 parent eb47092 commit cfdcd3a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/bench/src/bench.ts
@@ -1,5 +1,5 @@
import { TimingResult } from "./api";
import { timed, timedResult } from "./timed";
import type { TimingResult } from "./api";

/**
* Executes given function `n` times, prints elapsed time to console and
Expand Down
2 changes: 1 addition & 1 deletion packages/bench/src/benchmark.ts
@@ -1,6 +1,6 @@
import { BenchmarkOpts, BenchmarkResult } from "./api";
import { benchResult } from "./bench";
import { timedResult } from "./timed";
import type { BenchmarkOpts, BenchmarkResult } from "./api";

export const benchmark = (
fn: () => void,
Expand Down
2 changes: 1 addition & 1 deletion packages/bench/src/index.ts
@@ -1,4 +1,4 @@
export * from "./api";
export type * from "./api";
export * from "./bench";
export * from "./benchmark";
export * from "./now";
Expand Down
2 changes: 1 addition & 1 deletion packages/bench/src/timed.ts
@@ -1,5 +1,5 @@
import { TimingResult } from "./api";
import { now } from "./now";
import type { TimingResult } from "./api";

/**
* Calls function `fn` without args, prints elapsed time and returns
Expand Down

0 comments on commit cfdcd3a

Please sign in to comment.