cucumber / cucumber-js

Cucumber for JavaScript
https://cucumber.io
MIT License
5.02k stars 1.09k forks source link

Fix type import from cucumber-expressions #2310

Closed florianmutter closed 11 months ago

florianmutter commented 11 months ago

πŸ€” What's changed?

The ParameterType type is properly exported by the cucumber-expressions module so no need to directly reference the file.

⚑️ What's your motivation?

Without this change tsc fails for me with the following error:

node_modules/@cucumber/cucumber/lib/support_code_library_builder/sourced_parameter_type_registry.d.ts:2:27 - error TS2307: Cannot find module '@cucumber/cucumber-expressions/dist/cjs/src/ParameterType' or its corresponding type declarations.

2 import ParameterType from '@cucumber/cucumber-expressions/dist/cjs/src/ParameterType';
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error in node_modules/@cucumber/cucumber/lib/support_code_library_builder/sourced_parameter_type_registry.d.ts:2

🏷️ What kind of change is this?

♻️ Anything particular you want feedback on?

πŸ“‹ Checklist:


This text was originally generated from a template, then edited by hand. You can modify the template here.

coveralls commented 11 months ago

Coverage Status

coverage: 98.505%. remained the same when pulling 1152b61241f992d081db11b9e7d74cbd31d657f4 on florianmutter:florianmutter-patch-1 into fcbeb440ee03203357d5effab48181ffd275bc31 on cucumber:main.

aslakhellesoy commented 11 months ago

Hi @florianmutter,

Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾

In return for this generous offer we hope you will:

On behalf of the Cucumber core team, Aslak HellesΓΈy Creator of Cucumber

davidjgoss commented 11 months ago

Released in https://github.com/cucumber/cucumber-js/releases/tag/v9.4.0