What you could do is just assert yourself what the expected type of that array should be in order to overwrite the compiler’s resolution of the any type.
let myObject = {
myKey: 'someValue',
myOtherKey: [] as string[]
};
What you could do is just assert yourself what the expected type of that array should be in order to overwrite the compiler’s resolution of the any type.
let myObject = {
myKey: 'someValue',
myOtherKey: [] as string[]
};