Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: restructure types for direct import and publishing #14441

Merged
merged 54 commits into from
Jan 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
271cf0c
start
adamraine Sep 22, 2022
5710d82
env
adamraine Sep 22, 2022
098806c
lhr
adamraine Sep 22, 2022
cb26da4
move more
adamraine Sep 22, 2022
44b2a63
module
adamraine Sep 22, 2022
adc7ce9
ope
adamraine Sep 22, 2022
dbc8d7d
fix
adamraine Sep 23, 2022
654d977
fix
adamraine Sep 26, 2022
36c6acb
Merge branch 'main' into expose-types
adamraine Oct 10, 2022
7832e4f
ope
adamraine Oct 11, 2022
b683d56
ope
adamraine Oct 11, 2022
5c35f7c
d.ts again
adamraine Oct 12, 2022
ddd7f46
script
adamraine Nov 11, 2022
92e9c53
Merge branch 'main' into expose-types
adamraine Nov 11, 2022
c26ad51
pipe
adamraine Nov 14, 2022
dd0843e
script
adamraine Nov 14, 2022
67dd4b8
fix uf type import
adamraine Nov 14, 2022
3f429a3
rest
adamraine Nov 14, 2022
d0de3a1
ope
adamraine Nov 14, 2022
56e89e2
back
adamraine Nov 14, 2022
01573f9
fix
adamraine Nov 14, 2022
f37ff2a
comments
adamraine Nov 15, 2022
df88711
gitignore
adamraine Nov 15, 2022
464dea0
Merge branch 'main' into expose-types
adamraine Nov 15, 2022
2231c19
Merge branch 'main' into expose-types
adamraine Nov 16, 2022
773105e
Merge branch 'main' into expose-types
adamraine Nov 16, 2022
31470cf
mv
adamraine Nov 16, 2022
1cfb63c
Merge branch 'main' into expose-types
adamraine Nov 18, 2022
db59841
Merge branch 'main' into expose-types
adamraine Nov 30, 2022
f6e5f32
Merge branch 'main' into expose-types
adamraine Dec 9, 2022
77866e0
clean types
adamraine Dec 9, 2022
3ec52ee
build all
adamraine Dec 9, 2022
d4bdee9
prepack
adamraine Dec 9, 2022
0f1e9c3
types dir
adamraine Dec 9, 2022
32ea5d2
no export
adamraine Dec 9, 2022
ca6952b
comments
adamraine Dec 9, 2022
4ea12f0
back artifacts
adamraine Dec 9, 2022
326510c
comments
adamraine Dec 9, 2022
fa54814
Merge branch 'main' into expose-types
adamraine Dec 22, 2022
687c219
fix puppeteer
adamraine Dec 22, 2022
715b4f7
license
adamraine Dec 22, 2022
c542551
Merge branch 'main' into expose-types
adamraine Jan 3, 2023
d7477a7
import all
adamraine Jan 10, 2023
cb9d884
Merge branch 'main' into expose-types
adamraine Jan 13, 2023
7955ec9
Merge branch 'main' into expose-types
adamraine Jan 17, 2023
73936ff
Merge branch 'main' into expose-types
adamraine Jan 17, 2023
efb7d5e
warning
adamraine Jan 18, 2023
14ca719
internal
adamraine Jan 18, 2023
ba3104f
add .js ext and LH to work with nodenext
adamraine Jan 18, 2023
324012a
doc recipe and test
adamraine Jan 18, 2023
9a8b537
update
adamraine Jan 18, 2023
c6761ee
Merge branch 'main' into expose-types
adamraine Jan 18, 2023
af34cd0
woah there partner
adamraine Jan 18, 2023
05e8815
comments
adamraine Jan 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ core/scripts/legacy-javascript/variants
third-party/**

# ignore d.ts files until we can properly lint them
*.d.ts
**/*.d.ts
**/*.d.cts
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module.exports = {
vars: 'all',
args: 'after-used',
argsIgnorePattern: '(^reject$|^_+$)',
varsIgnorePattern: '(^_$)',
varsIgnorePattern: '(^_$|^LH$)',
}],
'space-infix-ops': 2,
'strict': [2, 'global'],
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
node-version: 16.x

- run: yarn install --frozen-lockfile --network-timeout 1000000
- run: yarn type-check
Copy link
Collaborator

@connorjclark connorjclark Jan 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just better to do this earlier (failing sooner if types are bad), or was there some reason to move?

Copy link
Member Author

@adamraine adamraine Jan 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yarn type-check is run as part of yarn build-all now, that would have made yarn type-check redundant and it would be confusing to receive type check errors as part of the build step.

Now we do the type check before building which fails sooner and caches types for the build step.

- run: yarn build-all

# Run pptr tests using ToT Chrome instead of stable default.
Expand All @@ -53,7 +54,6 @@ jobs:

- run: yarn diff:sample-json
- run: yarn diff:flow-sample-json
- run: yarn type-check
- run: yarn lint
- run: yarn test-lantern
- run: yarn test-legacy-javascript
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,8 @@ proto/scripts/*_processed.json
# require any lock file to be checked in explicitly
yarn.lock

# ignore generated d.ts files
**/*.d.ts
**/*.d.cts
!**/types/**/*.d.ts

1 change: 1 addition & 0 deletions core/audits/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/

import * as LH from '../../types/lh.js';
import {isUnderTest} from '../lib/lh-env.js';
import * as statistics from '../lib/statistics.js';
import {Util} from '../util.cjs';
Expand Down
1 change: 1 addition & 0 deletions core/computed/network-records.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/

import * as LH from '../../types/lh.js';
import {makeComputedArtifact} from './computed-artifact.js';
import {NetworkRecorder} from '../lib/network-recorder.js';

Expand Down
1 change: 1 addition & 0 deletions core/config/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

/* eslint-disable max-len */

import * as LH from '../../types/lh.js';
import * as constants from './constants.js';
import * as i18n from '../lib/i18n/i18n.js';
import {metricsToAudits} from './metrics-to-audits.js';
Expand Down
1 change: 1 addition & 0 deletions core/config/desktop-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/

import * as LH from '../../types/lh.js';
import * as constants from './constants.js';

/** @type {LH.Config} */
Expand Down
2 changes: 2 additions & 0 deletions core/gather/base-gatherer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/

import * as LH from '../../types/lh.js';

/* eslint-disable no-unused-vars */

/**
Expand Down
1 change: 1 addition & 0 deletions core/gather/driver/execution-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

/* global window */

import * as LH from '../../../types/lh.js';
import {pageFunctions} from '../../lib/page-functions.js';

class ExecutionContext {
Expand Down
2 changes: 2 additions & 0 deletions core/gather/fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/

import * as LH from '../../types/lh.js';

/**
* @fileoverview Fetcher is a utility for making requests to any arbitrary resource,
* ignoring normal browser constraints such as CORS.
Expand Down
2 changes: 2 additions & 0 deletions core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {ReportGenerator} from '../report/generator/report-generator.js';
import {startTimespanGather} from './gather/timespan-runner.js';
import {snapshotGather} from './gather/snapshot-runner.js';
import {navigationGather} from './gather/navigation-runner.js';
import * as LH from '../types/lh.js';

/** @typedef {import('./legacy/gather/connections/connection.js').Connection} Connection */

Expand Down Expand Up @@ -157,6 +158,7 @@ export {default as Gatherer} from './gather/base-gatherer.js';
export {NetworkRecords} from './computed/network-records.js';
export {default as defaultConfig} from './config/default-config.js';
export {default as desktopConfig} from './config/desktop-config.js';
export * from '../types/lh.js';
export {
legacyNavigation,
startFlow,
Expand Down
1 change: 1 addition & 0 deletions core/legacy/gather/connections/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {EventEmitter} from 'events';

import log from 'lighthouse-logger';

import * as LH from '../../../../types/lh.js';
import {LighthouseError} from '../../../lib/lh-error.js';

// TODO(bckenny): CommandCallback properties should be tied by command type after
Expand Down
1 change: 1 addition & 0 deletions core/legacy/gather/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {EventEmitter} from 'events';

import log from 'lighthouse-logger';

import * as LH from '../../../types/lh.js';
import {Fetcher} from '../../gather/fetcher.js';
import {ExecutionContext} from '../../gather/driver/execution-context.js';
import {LighthouseError} from '../../lib/lh-error.js';
Expand Down
1 change: 1 addition & 0 deletions core/lib/dependency-graph/cpu-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/

import * as LH from '../../../types/lh.js';
import {BaseNode} from './base-node.js';

class CPUNode extends BaseNode {
Expand Down
1 change: 1 addition & 0 deletions core/lib/dependency-graph/network-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/

import * as LH from '../../../types/lh.js';
import {BaseNode} from './base-node.js';
import {NetworkRequest} from '../network-request.js';

Expand Down
1 change: 1 addition & 0 deletions core/lib/dependency-graph/simulator/connection-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/

import * as LH from '../../../../types/lh.js';
import {NetworkAnalyzer} from './network-analyzer.js';
import {TcpConnection} from './tcp-connection.js';

Expand Down
2 changes: 2 additions & 0 deletions core/lib/dependency-graph/simulator/dns-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/

import * as LH from '../../../../types/lh.js';

// A DNS lookup will usually take ~1-2 roundtrips of connection latency plus the extra DNS routing time.
// Example: https://www.webpagetest.org/result/180703_3A_e33ec79747c002ed4d7bcbfc81462203/1/details/#waterfall_view_step1
// Example: https://www.webpagetest.org/result/180707_1M_89673eb633b5d98386de95dfcf9b33d5/1/details/#waterfall_view_step1
Expand Down
4 changes: 2 additions & 2 deletions core/lib/dependency-graph/simulator/simulator-timing-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import {BaseNode} from '../base-node.js';


/** @typedef {import('../base-node.js').Node} Node */
/** @typedef {import('../network-node').NetworkNode} NetworkNode */
/** @typedef {import('../cpu-node').CPUNode} CpuNode */
/** @typedef {import('../network-node.js').NetworkNode} NetworkNode */
/** @typedef {import('../cpu-node.js').CPUNode} CpuNode */

/**
* @typedef NodeTimingComplete
Expand Down
5 changes: 3 additions & 2 deletions core/lib/dependency-graph/simulator/simulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/

import * as LH from '../../../../types/lh.js';
import {BaseNode} from '../base-node.js';
import {TcpConnection} from './tcp-connection.js';
import {ConnectionPool} from './connection-pool.js';
Expand All @@ -14,8 +15,8 @@ import * as constants from '../../../config/constants.js';
const mobileSlow4G = constants.throttling.mobileSlow4G;

/** @typedef {import('../base-node.js').Node} Node */
/** @typedef {import('../network-node').NetworkNode} NetworkNode */
/** @typedef {import('../cpu-node').CPUNode} CpuNode */
/** @typedef {import('../network-node.js').NetworkNode} NetworkNode */
/** @typedef {import('../cpu-node.js').CPUNode} CpuNode */
/** @typedef {import('./simulator-timing-map.js').CpuNodeTimingComplete | import('./simulator-timing-map.js').NetworkNodeTimingComplete} CompleteNodeTiming */
/** @typedef {import('./simulator-timing-map.js').ConnectionTiming} ConnectionTiming */

Expand Down
1 change: 1 addition & 0 deletions core/lib/network-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
Trace: ResourceFinish.ts
*/

import * as LH from '../../types/lh.js';
import UrlUtils from './url-utils.js';

// Lightrider X-Header names for timing information.
Expand Down
1 change: 1 addition & 0 deletions core/lib/tracehouse/main-thread-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/

import * as LH from '../../../types/lh.js';
import {taskGroups, taskNameToGroup} from './task-groups.js';

/**
Expand Down
1 change: 1 addition & 0 deletions core/user-flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {initializeConfig} from './config/config.js';
import {getFormatted} from '../shared/localization/format.js';
import {mergeConfigFragment, deepClone} from './config/config-helpers.js';
import * as i18n from './lib/i18n/i18n.js';
import * as LH from '../types/lh.js';

/** @typedef {WeakMap<LH.UserFlow.GatherStep, LH.Gatherer.FRGatherResult['runnerOptions']>} GatherStepRunnerOptions */

Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"private": true,
"scripts": {
"install-all": "rm -rf /tmp/.junk && rm -f {auth,custom-gatherer-puppeteer,integration-test}/yarn.lock && yarn --cwd auth/ --cache-folder /tmp/.junk && yarn --cwd integration-test/ --cache-folder /tmp/.junk && yarn --cwd custom-gatherer-puppeteer/ --cache-folder /tmp/.junk",
"install-all": "rm -rf /tmp/.junk && rm -f {auth,custom-gatherer-puppeteer,integration-test,type-checking}/yarn.lock && yarn --cwd auth/ --cache-folder /tmp/.junk && yarn --cwd integration-test/ --cache-folder /tmp/.junk && yarn --cwd custom-gatherer-puppeteer/ --cache-folder /tmp/.junk && yarn --cwd type-checking/ --cache-folder /tmp/.junk",
"integration-test": "yarn --cwd integration-test/ test",
"custom-gatherer-puppeteer-test": "yarn --cwd custom-gatherer-puppeteer/ test",
"type-checking-test": "yarn --cwd type-checking/ test",
"test": "sh test-recipes.sh"
}
}
1 change: 1 addition & 0 deletions docs/recipes/test-recipes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ fi
yarn install-all
yarn integration-test
yarn custom-gatherer-puppeteer-test
yarn type-checking-test
14 changes: 14 additions & 0 deletions docs/recipes/type-checking/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"private": true,
"type": "module",
"scripts": {
"test": "tsc"
},
"devDependencies": {
"lighthouse": "file:../../../dist/lighthouse.tgz",
"typescript": "^4.9.4"
},
"dependencies": {
"puppeteer": "^19.5.2"
}
}
5 changes: 5 additions & 0 deletions docs/recipes/type-checking/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Lighthouse type checking recipe

This example project demonstrates how Lighthouse types can be imported into a node project.

`use-types.ts` is a basic user flow script that takes advantage of Lighthouse types and integrates with the version of Puppeteer installed.
12 changes: 12 additions & 0 deletions docs/recipes/type-checking/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"noEmit": true,
"target": "esnext",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"strict": true,
},
"include": [
"./use-types.ts"
]
}
34 changes: 34 additions & 0 deletions docs/recipes/type-checking/use-types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/**
* @license Copyright 2023 The Lighthouse Authors. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/

import {writeFileSync} from 'fs';

import * as lhApi from 'lighthouse';
import puppeteer from 'puppeteer';

const browser = await puppeteer.launch();
const page = await browser.newPage();

const config: lhApi.Config = {
extends: 'lighthouse:default',
settings: {
skipAudits: ['uses-http2'],
},
};

// Lighthouse will accept a page from whatever Puppeteer version is installed.
const flow: lhApi.UserFlow = await lhApi.startFlow(page, {config});

await flow.navigate('https://example.com');

await flow.startTimespan({name: 'Click button'});
await page.click('button');
await flow.endTimespan();

await flow.snapshot({name: 'New page state'});

const report = await flow.generateReport();
writeFileSync('flow.report.html', report);
2 changes: 1 addition & 1 deletion flow-report/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"**/*.ts",
"**/*.tsx",
"./types",
"../types/test.d.ts",
"../types/internal/test.d.ts",
"../root.js",
"../esm-utils.js",
"../core/test/test-env/fake-timers.js",
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"node": ">=16.16"
},
"scripts": {
"prepack": "yarn build-report --standalone --flow --esm",
"prepack": "yarn build-report --standalone --flow --esm && yarn build-types",
"postpack": "yarn clean-types",
"build-all": "npm-run-posix-or-windows build-all:task",
"build-all:task": "yarn build-report && yarn build-cdt-lib && yarn build-devtools && concurrently 'yarn build-extension' 'yarn build-lr' 'yarn build-viewer' 'yarn build-treemap' 'yarn build-smokehouse-bundle' && yarn build-pack",
"build-all:task:windows": "yarn build-report && yarn build-cdt-lib && yarn build-extension && yarn build-devtools && yarn build-lr && yarn build-viewer && yarn build-treemap && yarn build-smokehouse-bundle",
Expand All @@ -29,9 +30,11 @@
"build-sample-reports": "yarn build-report && node build/build-sample-reports.js",
"build-treemap": "node ./build/build-treemap.js",
"build-viewer": "node ./build/build-viewer.js",
"build-types": "yarn type-check && rsync -a .tmp/tsbuildinfo/ ./ --include='*.d.ts' --include='*.d.cts' --exclude='*.map' --exclude='*.tsbuildinfo'",
"reset-link": "(yarn unlink || true) && yarn link && yarn link lighthouse",
"c8": "bash core/scripts/c8.sh",
"clean": "rm -r dist proto/scripts/*.json proto/scripts/*_pb2.* proto/scripts/*_pb.* proto/scripts/__pycache__ proto/scripts/*.pyc *.report.html *.report.dom.html *.report.json *.devtoolslog.json *.trace.json shared/localization/locales/*.ctc.json || true",
"clean-types": "git clean -xfq '*.d.ts' '*.d.cts' -e 'node_modules/' -e 'dist/' -e '.tmp/' -e '**/types/'",
"lint": "[ \"$CI\" = true ] && eslint --quiet -f codeframe . || eslint .",
"smoke": "node cli/test/smokehouse/frontends/smokehouse-bin.js",
"debug": "node --inspect-brk ./cli/index.js",
Expand Down
2 changes: 1 addition & 1 deletion report/types/augment-dom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

// Import to augment querySelector/querySelectorAll with stricter type checking.
import '../../types/query-selector';
import '../../types/internal/query-selector';

declare global {
var CompressionStream: {
Expand Down
Loading