Skip to content

Commit aae711c

Browse files
authored
change hashes type from any to Record<string, string> (#2270)
1 parent f59ea9f commit aae711c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Please see [CONTRIBUTING.md](./CONTRIBUTING.md) on how to contribute to Cucumber
1111
### Added
1212
- Formatters create sub-directory automatically instead of failing ([#2266](https://github.com/cucumber/cucumber-js/pull/2266))
1313

14+
### Changed
15+
- Change hashes type from `any` to `Record<string, string>` in `DataTable` ([#2270](https://github.com/cucumber/cucumber-js/pull/2270))
16+
1417
## [9.0.1] - 2023-03-15
1518
### Fixed
1619
- Ensure feature paths are properly deduplicated ([#2258](https://github.com/cucumber/cucumber-js/pull/2258))

src/models/data_table.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default class DataTable {
1313
}
1414
}
1515

16-
hashes(): any[] {
16+
hashes(): Record<string, string>[] {
1717
const copy = this.raw()
1818
const keys = copy[0]
1919
const valuesArray = copy.slice(1)

0 commit comments

Comments
 (0)