angus-c / just

A library of dependency-free JavaScript utilities that do just one thing.
https://anguscroll.com/just
MIT License
6.06k stars 209 forks source link

Replace `object` type with `Record<keyof any, unknown>` in object-* packages #550

Closed Masa-Shin closed 1 year ago

Masa-Shin commented 1 year ago

It is recommended to use Record<string, unknown> instead of object type. Reference.

klaseca commented 1 year ago

If we replace object type with Record<string, unknown> or Record<keyof any, unknown>, we cannot use interfaces (playground)

Masa-Shin commented 1 year ago

I see you point, since this is a library it should be able to accept interfaces. So I close the PR.