type alias Aroundthefrontside/effectiontype Around = [K in keyof Api] : Api[K] extends (…args: infer TArgs) => infer TReturn ? Middleware<TArgs, TReturn> : Middleware<[], Api[K]>The shape of middlewares can surround a particular {Api} Members of an Api that are values are surrounded by no-arg functions. Type Parameters Api