Skip to content

Fix TypeScript typechecking not working#1002

Open
vixalien wants to merge 6 commits into
mainfrom
wip/vixalien/fix-workbench-ambient
Open

Fix TypeScript typechecking not working#1002
vixalien wants to merge 6 commits into
mainfrom
wip/vixalien/fix-workbench-ambient

Conversation

@vixalien

Copy link
Copy Markdown
Contributor

In this PR, I:

  • Updated the gi-types
  • Correctly placed them into the correct path (at src/langs/typescript/template/gi-types
  • Fixed the global workbench type not working

This is in reference to #870 (comment)

image

Comment thread src/langs/typescript/types/ambient.d.ts Outdated

@sonnyp sonnyp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks

Isn't it a good time to generate accurate types ourselves?

Add a simple script that will generate the types for us. Probably similar to https://github.com/vixalien/gi-typescript-definitions/blob/main/generate_types_in_flatpak.sh

workbenchdev/demos#201

https://floss.social/@jumplink/114218446354825670

@vixalien

Copy link
Copy Markdown
Contributor Author

We can. But I don't know if it's the best idea, the diffs will be huge.

@sonnyp

sonnyp commented Mar 24, 2025

Copy link
Copy Markdown
Contributor

Why is that an issue?

@sonnyp

sonnyp commented Mar 29, 2025

Copy link
Copy Markdown
Contributor

@vixalien ping :)

Comment thread src/langs/typescript/types/ambient.d.ts Outdated
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