Skip to content

Commit

Permalink
Fix type import from cucumber-expressions
Browse files Browse the repository at this point in the history
ParameterType is now properly exported so no need to directly reference it.

Without this change tsc files 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
```
  • Loading branch information
florianmutter authored Aug 11, 2023
1 parent fcbeb44 commit 1152b61
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ParameterTypeRegistry } from '@cucumber/cucumber-expressions'
import ParameterType from '@cucumber/cucumber-expressions/dist/cjs/src/ParameterType'
import { ParameterType, ParameterTypeRegistry } from '@cucumber/cucumber-expressions'
import { ILineAndUri } from '../types'

export class SourcedParameterTypeRegistry extends ParameterTypeRegistry {
Expand Down

0 comments on commit 1152b61

Please sign in to comment.