bevry / envfile

Parse and write environment files with Node.js
Other
61 stars 10 forks source link

Data is a Record<string, string> #163

Closed adamhl8 closed 3 years ago

adamhl8 commented 3 years ago

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 commented 3 years ago

v6.17.0 - cheers