Skip to content

Conversation

dgraham
Copy link
Member

@dgraham dgraham commented Jul 29, 2022

Simplify parsing rows into objects and replace an any type with Row.

Simplify parsing rows into objects and replace an `any` type with `Row`.
@dgraham dgraham requested a review from iheanyi July 29, 2022 21:46
Copy link
Contributor

@iheanyi iheanyi left a comment

Choose a reason for hiding this comment

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

I love TypeScript so much.

}

return rv
return fields.reduce((acc, field, ix) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Ya know, this is way simpler and I vibe with this heavy.

}
}

type Row = Record<string, unknown>
Copy link
Contributor

Choose a reason for hiding this comment

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

Noice.

@dgraham dgraham merged commit 05bf0d5 into main Jul 29, 2022
@dgraham dgraham deleted the row-type branch July 29, 2022 21:48
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