Skip to content

Commit

Permalink
style: fix some style issues after review
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmlnc committed Oct 2, 2019
1 parent 85cb787 commit be18302
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/benchmark/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const DEFAULT_BENCHMARK_LAUNCHES = 10;
const DEFAULT_BENCHMARK_MAX_STDEV = 3;
const DEFAULT_BENCHMARK_RETRIES = 5;

type Arguments = {
type Arguments = RunnerOptions & {
basedir: string;
} & RunnerOptions;
};

const defaultArgv: Arguments = {
basedir: '.',
Expand Down
2 changes: 1 addition & 1 deletion src/benchmark/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type Measure = {
export type SuitePackMeasures = {
time: Measure;
memory: Measure;
} & Record<string, Measure>;
};

export type SuitePackResult = {
name: string;
Expand Down
8 changes: 4 additions & 4 deletions src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as pkg from '.';
describe('Package', () => {
describe('.sync', () => {
it('should throw an error when input values can not pass validation', () => {
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
// eslint-disable-next-line @typescript-eslint/no-explicit-any
assert.throws(() => pkg.sync(null as any), /TypeError: Patterns must be a string or an array of strings/);
});

Expand Down Expand Up @@ -50,7 +50,7 @@ describe('Package', () => {
describe('.async', () => {
it('should throw an error when input values can not pass validation', async () => {
try {
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
// eslint-disable-next-line @typescript-eslint/no-explicit-any
await pkg(null as any);
throw new Error('An unexpected error was found.');
} catch (error) {
Expand Down Expand Up @@ -96,7 +96,7 @@ describe('Package', () => {

describe('.stream', () => {
it('should throw an error when input values can not pass validation', () => {
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
// eslint-disable-next-line @typescript-eslint/no-explicit-any
assert.throws(() => pkg.stream(null as any), /TypeError: Patterns must be a string or an array of strings/);
});

Expand Down Expand Up @@ -152,7 +152,7 @@ describe('Package', () => {

describe('.generateTasks', () => {
it('should throw an error when input values can not pass validation', () => {
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
// eslint-disable-next-line @typescript-eslint/no-explicit-any
assert.throws(() => pkg.generateTasks(null as any), /TypeError: Patterns must be a string or an array of strings/);
});

Expand Down
4 changes: 2 additions & 2 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ export type Pattern = string;
export type PatternRe = RegExp;
export type PatternsGroup = Record<string, Pattern[]>;

export type ReaderOptions = {
export type ReaderOptions = fsWalk.Options & {
transform(entry: Entry): EntryItem;
deepFilter: DeepFilterFunction;
entryFilter: EntryFilterFunction;
errorFilter: ErrorFilterFunction;
fs: FileSystemAdapter;
stats: boolean;
} & fsWalk.Options;
};

export type ErrorFilterFunction = fsWalk.ErrorFilterFunction;
export type EntryFilterFunction = fsWalk.EntryFilterFunction;
Expand Down

0 comments on commit be18302

Please sign in to comment.