Closed bitspook closed 8 years ago
Looks like a bug introduced in the fix for #95.
For now, you can work around with:
// typecheck: ignore statement
seDateTime = ({date, time}: TypeDateTime) : TypeAction => {
return {
data: {
date,
time
},
name: 'DATE_TIME'
};
};
I will try and fix the bug later today or tomorrow.
Bug only affects arrow functions, another work around would be to use a normal function.
fixed in 3.6.1
Throws the error:
Which goes away if I make
date
andtime
inTypeDateTime
optional.Am I doing something wrong here or is this a bug?