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

Correct type definitions #23

Merged
merged 6 commits into from
Mar 12, 2024
Merged

Correct type definitions #23

merged 6 commits into from
Mar 12, 2024

Conversation

nikku
Copy link
Member

@nikku nikku commented Mar 11, 2024

This ensures we export clear unambiguous types, in the right way. As a result I can tsc type check any diagram-js* codebase without this:

image

It also ensures that this exports as an actual module. It was a module all the time, already.

@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Mar 11, 2024
@nikku nikku requested review from barmac, a team and marstamm and removed request for a team March 11, 2024 16:28
@barmac
Copy link
Member

barmac commented Mar 12, 2024

I am looking at this right now.

package.json Outdated
"test": "karma start",
"dev": "karma start --auto-watch --no-single-run"
"all": "run-s lint test check-types",
"check-types": "tsc --noEmit",
Copy link
Member

Choose a reason for hiding this comment

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

Since in the opening comment you used noImplicitAny, let's include that in the test. I will add it.

@barmac barmac merged commit 20474e3 into main Mar 12, 2024
4 checks passed
@barmac barmac deleted the fix-foop branch March 12, 2024 10:09
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Mar 12, 2024
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