Skip to content

✨ feat(mq-web): add inlayHints API support#1432

Merged
harehare merged 1 commit intomainfrom
feat/inlay-hints-support
Mar 12, 2026
Merged

✨ feat(mq-web): add inlayHints API support#1432
harehare merged 1 commit intomainfrom
feat/inlay-hints-support

Conversation

@harehare
Copy link
Copy Markdown
Owner

Expose inlayHints function and InlayHint type for mq code inlay type hints. Update core and index exports.

Expose inlayHints function and InlayHint type for mq code inlay type hints. Update core and index exports.
Copilot AI review requested due to automatic review settings March 12, 2026 12:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds mq-web wrapper support for exposing inferred type inlay hints from the underlying WASM bindings, and expands diagnostics to optionally include type-checking results.

Changes:

  • Export inlayHints from mq-web’s public entrypoint and add InlayHint to exported types.
  • Extend diagnostics() to accept an optional enableTypeCheck flag and forward it to the WASM layer.
  • Wire up the WASM module interface to include the new inlayHints function.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/mq-web/src/index.ts Updates public exports to include inlayHints and the InlayHint type.
packages/mq-web/src/core.ts Adds the inlayHints() wrapper and extends diagnostics() with an optional type-check flag.


// Re-export everything from core and types
export { run, format, diagnostics, definedValues, toAst } from "./core.js";
export { run, format, diagnostics, inlayHints, definedValues, toAst } from "./core.js";
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

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

The package entrypoint still doesn’t re-export htmlToMarkdown and toHtml from core.ts, even though those functions exist and are documented as importable from mq-web in packages/mq-web/README.md. This means consumers following the README will get missing-export errors; consider adding them to this export list to keep the public API consistent.

Suggested change
export { run, format, diagnostics, inlayHints, definedValues, toAst } from "./core.js";
export {
run,
format,
diagnostics,
inlayHints,
definedValues,
toAst,
htmlToMarkdown,
toHtml,
} from "./core.js";

Copilot uses AI. Check for mistakes.
@harehare harehare merged commit 3777700 into main Mar 12, 2026
8 checks passed
@harehare harehare deleted the feat/inlay-hints-support branch March 12, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants