There seems to be a typescript error showing up as
Error: Property 'type' does not exist on type 'never'
in the following code snippet:
export const getSomething = (actionLog: [] | undefined) => {
console.info(actionLog[length - 1].type)
}
Can anyone help identify and explain what is causing this issue?