News for hackers. Stuff that matters.
Re:Learn how to unleash the full potential of the type syste... by lediur on Tuesday September 20, 2022 @05:35PM (#32918115)
Linters for TypeScript recommend using `Record<string, any>` instead of `object`, since using the `object` type is misleading and can make it harder to use as intended.

See:

- https://typescript-eslint.io/rules/ban-types/

- https://github.com/typescript-eslint/typescript-eslint/issue...

- https://github.com/microsoft/TypeScript/issues/21732

- https://github.com/microsoft/TypeScript/pull/50666

There are no comments on this comment yet.