Skip to content

Conversation

@nathanb
Copy link
Member

@nathanb nathanb commented Dec 6, 2024

  • dropping implicit any
  • typing some interfaces
  • replacing any (data) with unknown
  • minor updates
  • dep to version ^1

Comment on lines -44 to -52
let header = fieldKeys.reduce((line, fieldKey) => {
const field = fields[fieldKey]
let header = ''
for (let ix = 0; ix < fields.length; ix++) {
const field = fields[ix]
const label = field.label || field.name
if (line === 'START') {
line = ''
} else {
line += fieldSeparator
if (ix > 0) {
header += fieldSeparator
}
line += prepValue(label, field.quoted, fieldSeparator)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I must've really liked reduce back then.

@nathanb nathanb marked this pull request as ready for review December 6, 2024 23:03
@nathanb nathanb merged commit ed55e9e into main Dec 6, 2024
14 checks passed
@nathanb nathanb deleted the drop-any branch December 6, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants