Allow typedefs for async function callbacks