Skip to content

Commit

Permalink
Typescript fixes for lighthouse
Browse files Browse the repository at this point in the history
  • Loading branch information
bjacobel committed May 26, 2024
1 parent 1fb75b0 commit dd00806
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/commands/lighthouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ export const handler = async (): Promise<void> => {
const chrome = await chromeLauncher.launch({
chromeFlags: ['--ignore-certificate-errors', '--headless'],
});
const { report } = await lighthouse(`https://localhost:${serverPort}`, {
const runnerResult = await lighthouse(`https://localhost:${serverPort}`, {
port: chrome.port,
output: 'html',
});
const report = runnerResult!.report as string;

console.log('showing results');
await fs.writeFile(reportPath, report);
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"lib": ["ES2022"],
"lib": ["ES2022", "DOM"],
"module": "CommonJS",
"noImplicitAny": true,
"noImplicitReturns": true,
Expand Down

0 comments on commit dd00806

Please sign in to comment.