Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

langium: follow-up on #972 contributing convenience type defs for cross-ref property distinction #1771

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

sailingKieler
Copy link
Contributor

  • fixed a nasty bug in internal type 'ExtractKeysOfValueType' by adding '-?' to the result object key list
  • improved documentation
  • contributed a bunch of tests in 'syntax-tree.test.ts' which is effectively tested during the TypeScript compilation: test failures occur as compilation errors

@sailingKieler sailingKieler added bug Something isn't working ast AST structure related issue labels Dec 5, 2024
@Lotes Lotes self-requested a review December 5, 2024 18:43
@sailingKieler sailingKieler force-pushed the cs/cross-ref-distinction branch from b661ab3 to d622fa2 Compare December 6, 2024 14:36
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

@sailingKieler As discussed yesterday during the dev-meeting, there actually is a way to explicitly test types by invoking the TypeScript compiler. This is done by vitest (see type testing guide) when renaming the file to *.test-d.ts.

packages/langium/test/syntax-tree.test.ts Outdated Show resolved Hide resolved
packages/langium/test/syntax-tree.test.ts Outdated Show resolved Hide resolved
@sailingKieler sailingKieler force-pushed the cs/cross-ref-distinction branch from d622fa2 to 67c147e Compare December 12, 2024 12:53
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

…ss-ref properties distinction

* fixed a nasty bug in internal type 'ExtractKeysOfValueType' by adding '-?' to the result object key list
* improved documentation
* contributed a bunch of tests in 'syntax-tree.test.ts' which is effectively tested during the TypeScript compilation: test failures occur as compilation errors
@sailingKieler sailingKieler force-pushed the cs/cross-ref-distinction branch from 67c147e to c8c441b Compare December 12, 2024 13:02
@sailingKieler sailingKieler merged commit 3f9de4c into main Dec 12, 2024
5 checks passed
@sailingKieler sailingKieler deleted the cs/cross-ref-distinction branch December 12, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ast AST structure related issue bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants