Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data is a Record<string, string> #163

Merged
merged 1 commit into from
Jul 29, 2021
Merged

Data is a Record<string, string> #163

merged 1 commit into from
Jul 29, 2021

Conversation

adamhl8
Copy link
Contributor

@adamhl8 adamhl8 commented Jul 26, 2021

I think the types on parse() could be improved. It's using a generic which doesn't make sense imo. result is always an object, and since const value is always a string, result should be typed as { [key: string]: string }. parse() returns result, and as such its return type should just be Record<string, string>.

@balupton balupton changed the title improve parse() types Data is actually just a Record<string, string> Jul 29, 2021
@balupton balupton merged commit 691c528 into bevry:master Jul 29, 2021
@balupton balupton changed the title Data is actually just a Record<string, string> Data is a Record<string, string> Jul 29, 2021
@balupton
Copy link
Member

v6.17.0 - cheers

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.

None yet

2 participants