Currently, I am encountering a lint error that states:
Avoid using object as a type
My code snippet where I use object as a type can be seen below:
export const myFunc = (obj: object): string => {
return obj.toString()
}
I'm looking for suggestions on what type to assign to an object with unknown properties.
Just to clarify, the object in question is not an array (which we know is technically still considered an object in JavaScript).
Thanks in advance for any insights!