/** * Checks whether value is async function. * Only functions created with modifier "async" are considered async. * Regular function that returns promise or accepts callback is not an async function. * * More info: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncFunction * * @example * is.asyncFunction(async () => {}); // true * is.asyncFunction(function* () {}); // false * is.asyncFunction(function() {}); // false */ export default function isAsyncFunction(value: any): value is (...args: any[]) => Promise;