Skip to main content
Module

x/evt/tools/typeSafety/AsyncReturnType.ts

💧EventEmitter's typesafe replacement
Go to Latest
File

/** Extract the return type of an async function */export type AsyncReturnType<T extends (...args: any) => Promise<any>> = T extends (...args: any) => Promise<infer R> ? R : never;