#typescript

2022 03 16

#typescript fun


export type AsyncFuntionType = Awaited<ReturnType<typeof yourAsyncFunction>>

if it returns an array, simply get the first time from it

export type AsyncFuntionType = Awaited<ReturnType<typeof yourAsyncFunction>>[0];
Edit on GitHub