Open
Description
What is the current behavior?
redux/test/typescript/actionCreators.ts
Lines 13 to 18 in beb1fc2
We declare the addTodo
function that accepts one string argument text
,
but we could pass any argument to it.
const addTodoAction: AddTodoAction = addTodo(false, 0, null);
👆👆👆 //no ts error!
There may be a problem (...args: any[])
Lines 440 to 442 in c676a25
What is the expected behavior?
Raise a type error