I put the important code together to form the above code. Let's focus on it. Here, when validating the onClick prop, if an async function is passed to it, a warning will be thrown at runtime:
arrayOf - value validation error:
shape - "onClick" property validation error:
function - value "async (rowData) => {
await new Promise((res) => {
setTimeout(res, 3e3);
});
console.log("modify", rowData);
}" should be of type "Function"
Expected behaviorfunc validation can support both regular functions and async functions.
Describe the bug I have a piece of code as follows:
I put the important code together to form the above code. Let's focus on it. Here, when validating the
onClick
prop, if anasync function
is passed to it, a warning will be thrown at runtime:Expected behavior
func
validation can support both regular functions and async functions.Library version 5.0.3
Vue.js version 3.3.4