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/).
8
8
Please see [ CONTRIBUTING.md] ( ./CONTRIBUTING.md ) on how to contribute to Cucumber.
9
9
10
10
## [ Unreleased]
11
+ ### Fixed
12
+ - Type signature of ` defineParameterType ` correctly reflects ` transformer ` property's optionality.
11
13
12
14
## [ 10.5.0] - 2024-04-21
13
15
### Added
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export interface IDefineTestRunHookOptions {
71
71
export interface IParameterTypeDefinition < T > {
72
72
name : string
73
73
regexp : readonly RegExp [ ] | readonly string [ ] | RegExp | string
74
- transformer : ( ...match : string [ ] ) => T
74
+ transformer ? : ( ...match : string [ ] ) => T
75
75
useForSnippets ?: boolean
76
76
preferForRegexpMatch ?: boolean
77
77
}
You can’t perform that action at this time.
0 commit comments