Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Jun 9, 2022
1 parent 9ab1cda commit 97696de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert';
import { scanFs, Options } from '@discoveryjs/scan-fs';
import { scanFs, Options, File } from '@discoveryjs/scan-fs';

const basedir = `${process.cwd()}/test-fixtures`;
const expected = Array.from(
Expand All @@ -18,7 +18,7 @@ const expected = Array.from(
(path) => ({ path })
);

async function run(options?: Options): Promise<ReturnType<typeof scanFs & { files: File[] }>> {
async function run(options?: Options): Promise<ReturnType<typeof scanFs> & { files: File[] }> {
const result = await scanFs(options);

result.sort((a, b) => (a.path < b.path ? -1 : 1));
Expand Down

0 comments on commit 97696de

Please sign in to comment.