Repository navigation
chore: remove allowJs from tsconfig.json and annotate URLPattern - #3290
Merged
Merged
Conversation
Lightning00Blade
force-pushed
the
chore/remove-allowjs
branch
3 times, most recently
from
October 21, 2026 13:24
0d8157e to
290bd60
Compare
Lightning00Blade
force-pushed
the
chore/remove-allowjs
branch
from
October 21, 2026 15:03
8d8f5ec to
d07eb4f
Compare
OrKoN
approved these changes
Oct 21, 2026
yashdesai87
pushed a commit
to yashdesai87/chrome-devtools-mcp
that referenced
this pull request
Oct 21, 2026
Stacked on ChromeDevTools#3290. Enables `isolatedDeclarations` in `tsconfig.json`. The option requires `declaration`, so that is enabled too. `isolatedDeclarations` requires explicit types on exports, so the CLI option types are now declared instead of inferred from the Yargs option objects: - `BrowserArguments`, `PuppeteerArguments`, `ToolArguments`, `CategoryArguments` and `McpArguments` declare the parsed value of each option. `ParsedArguments` is now defined in `mcp-options.ts` from `McpArguments` instead of `InferredOptionTypes<typeof mcpOptions>`. - `McpOptionsFor<TArgs, TBase>` derives the type of an option map from its arguments interface. It checks each option's `type`, `default`, `choices` and `coerce` against the declared value type. A required argument must have a `default`. An optional (`?`) argument has no `default`. - `ParsedArguments` is imported from `mcp-options.ts` everywhere. The re-exports from `ServerConfig.ts` and `ConfigParser.ts` are removed, and so is an unused `McpOption` re-export. - `package.json` excludes the emitted `.d.ts` files from the npm package. npm matches a negated `files` entry such as `!*.d.ts` only at the package root, so the entry is `!**/*.d.ts`. ## User-visible changes None. The option definitions, defaults and generated docs do not change (`npm run gen` produces no diff). `npm pack --dry-run` lists no `.d.ts` files. ## Testing - `npm run format` - `npm run test` - `npm run gen` (no changes)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes
allowJsand theacorn.mjsentry fromtsconfig.json(transpiling pre-built DevTools third-party JS/MJS files inscripts/post-build.tsinstead), updatesrollup.config.jsto discover bundled DevToolsthird_partypackages from Rollup chunks and read their metadata/licenses fromREADME.chromium, and adds an explicit type annotation toURLPatterninsrc/third_party/cli.tsin preparation for enablingisolatedDeclarations.