fix(types): expose Lynx runtime globals in editor - #6
Open
icecreamx10 wants to merge 2 commits into
Open
Conversation
Remove task-specific files from docs/workflows. Future implementation context, root causes, platform caveats, and validation results belong in commit messages instead of repository workflow documents.
Inject a minimal virtual declaration file for Lynx UI projects that explicitly use @lynx-js/types with an ES-only lib. This exposes console and the timeout/interval globals without enabling DOM or Node APIs. The installed @lynx-js/types package declares timer functions outside declare global and exports Console without a global console variable, so Lynxtron GO reported valid runtime APIs as unresolved names. Validated with the TypeScript language-service regression test and a production desktop rspack build. The broader language-service suite still has the pre-existing desktop Response diagnostic failure.
icecreamx10
force-pushed
the
codex/editor-stability-and-diagnostics
branch
from
July 22, 2026 04:06
c93b8b6 to
833519a
Compare
icecreamx10
marked this pull request as ready for review
July 22, 2026 06:00
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.
Summary
Root cause
The installed
@lynx-js/typespackage places timer declarations outsidedeclare globaland exportsConsolewithout declaring the globalconsolevariable. Lynxtron GO therefore reported valid runtime APIs such assetInterval,clearTimeout, andconsoleas unresolved names.Implementation
Inject a minimal virtual declaration file only for Lynx projects that explicitly use
@lynx-js/typeswith an ES-only lib. Browser and Node globals remain unavailable to Lynx UI code.Validation
consolerequirewarnings remaingit diff --checkpassedThe broader language-service suite retains one pre-existing failure where the desktop host's
fetch()resolves to the wrongResponsetype.