Update index.d.ts to use Types namespace instead of Types export #779
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.
Description
Relates to #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