File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/support_code_library_builder Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88Please see [ CONTRIBUTING.md] ( ./CONTRIBUTING.md ) on how to contribute to Cucumber.
99
1010## [ Unreleased]
11+ ### Fixed
12+ - Type signature of ` defineParameterType ` correctly reflects ` transformer ` property's optionality.
1113
1214## [ 10.5.0] - 2024-04-21
1315### Added
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export interface IDefineTestRunHookOptions {
7171export interface IParameterTypeDefinition < T > {
7272 name : string
7373 regexp : readonly RegExp [ ] | readonly string [ ] | RegExp | string
74- transformer : ( ...match : string [ ] ) => T
74+ transformer ? : ( ...match : string [ ] ) => T
7575 useForSnippets ?: boolean
7676 preferForRegexpMatch ?: boolean
7777}
You can’t perform that action at this time.
0 commit comments