Property 'type' is missing in type '{}' but required in type 'AnyAction' redux toolkit code example
Example: Property '0' is missing in type '[]' but required in type '
myArray:[]; //Incorrect, results in error message of `Property '0' is missing in type`
myArray: Array<string>; //Correct
myArray: string[]; //Also correct