Lint issue again
Closed this issue · 2 comments
fjs21 commented
/home/pi/dev/homebridge-blueair/src/blueair-aws-api.ts
26:29 error Don't use `object` as a type. The `object` type is currently hard to use ([see this issue](https://github.com/microsoft/TypeScript/issues/21732)).
Consider using `Record<string, unknown>` instead, as it allows you to more easily inspect and use the keys @typescript-eslint/ban-types
Hi @jonato1, I tried to publish v1.1.1 with some minor fixes but ran into this issue again. I did some googling and it appears the use of object as a type is frowned upon.
Would this work?
private readonly awsKeys: Record<string, unknown>;
jonato1 commented
fjs21 commented
Looks good. Thanks.