mirror of
https://github.com/moghtech/komodo.git
synced 2025-12-05 19:17:36 -06:00
[PR #779] Update index.d.ts to use Types namespace instead of Types export #784
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/779
Author: @chrishoage
Created: 8/28/2025
Status: 🔄 Open
Base:
main← Head:komodo_action_sidecar📝 Commits (1)
51472c1Update index.d.ts to use Types namespace instead of Types export📊 Changes
7 files changed (+18102 additions, -4 deletions)
View changed files
📝
bin/core/src/ts_client.rs(+2 -0)📝
client/core/ts/generate_types.mjs(+5 -0)➕
client/core/ts/src/types_namespace.ts(+9033 -0)➕
frontend/public/client/types_namespace.d.ts(+9052 -0)➕
frontend/public/client/types_namespace.js(+1 -0)📝
frontend/public/index.d.ts(+2 -3)📝
frontend/src/monaco/init.ts(+7 -1)📄 Description
Description
Relates to https://github.com/moghtech/komodo/issues/778
This PR updates the index.d.ts file which defines the global variables and available types to use a namespace instead of an export of the types.
This better allows Deno to pick up the types for use (observe the deno.d.ts file uses a namespace for Deno in the same way
While having both
types.tsandtypes_namespace.tsis a bit unfortunate, these files are automatically generated so they will always stay up to date.This change unlocks the future for Action resource syncs since they can now be type checked outside of Komodo Core.
This PR was largely to demonstrate the steps shown in the linked GitHub issue. Feel free to either push to this branch directly, or wait as long as you want until time can be made to do the rust half of the ticket (my rust skills are not sharp enough to make the change
Steps to Test
Trigger deno to cache the imports (right click menu / action menu in VS Code)
Observe types work in editor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.