An AsyncFunction type that misses its own prototype slot - created
either by an async arrow function expression or by either of both async
non-arrow function variants, an async function expression or an async
function statement.
@property {'AsyncFunction'} [Symbol.toStringTag]
Defines the Symbol.toStringTag property as "AsyncFunction".
Within a TypeScript environment (hence .ts instead of .js files)
one can annotate AsyncFunction like that ...
An
AsyncFunctiontype that misses its ownprototypeslot - created either by an async arrow function expression or by either of both async non-arrow function variants, an async function expression or an async function statement.@property {'AsyncFunction'} [Symbol.toStringTag]Defines theSymbol.toStringTagproperty as"AsyncFunction".Within a TypeScript environment (hence
.tsinstead of.jsfiles) one can annotateAsyncFunctionlike that ...const AsyncFunctionConstructor = (async () => {}).constructor; export type AsyncFunction = typeof AsyncFunctionConstructor;