sincecutoff.com
← all changes

Lighthouse TypeScript consumers can import public types from lighthouse/types.js

Introduced 2026-06-09 · score 0.98

HOW TO USE IT

When TypeScript code consuming Lighthouse needs the LH Audit namespace type, import it from the public type-only entrypoint `lighthouse/types.js`.

import type { Audit } from 'lighthouse/types.js';

WHY THIS HELPS

Import Lighthouse Audit types while implementing TypeScript code that consumes Lighthouse.

BEFORE THIS CHANGE

Import types such as `LH.Audit` from the nested `lighthouse/types/lh.js` path.

REQUIREMENTS AND LIMITATIONS

  • Version: v13.4.0
  • Audit (required): Type namespace re-exported from `types/lh.js` by the public type-only entrypoint.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card