Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "src/module/interface/Async"

Index

Type aliases

Type aliases

Async

Async<Fn>: (...args: Parameters<Fn>) => PromiseConstruct<ReturnType<Fn>>

将函数变为异步函数

Type parameters

Type declaration

PromiseConstruct

PromiseConstruct<T>: T extends Promise<any> ? T : Promise<T>

Type parameters

  • T

Generated using TypeDoc