Skip to content

Commit

Permalink
fix type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf authored and bryanjtc committed Mar 10, 2023
1 parent c96252e commit 1c6879a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test-storybook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ const { transformPlaywrightJson } = require('../dist/cjs/playwright/transformPla

const glob_og = require('glob');

const glob = function (pattern, options) {
const glob = function (pattern: string, options?: any): Promise<string[]> {
return new Promise((resolve, reject) => {
glob_og(pattern, options, (err, files) => (err === null ? resolve(files) : reject(err)));
glob_og(pattern, options, (err: Error, files: string[]) =>
err === null ? resolve(files) : reject(err)
);
});
};

Expand Down

0 comments on commit 1c6879a

Please sign in to comment.