Skip to content

GramIO API Reference / @gramio/composer/dist / MacroDeriveType

Type Alias: MacroDeriveType<M>

MacroDeriveType<M> = M extends (opts) => object ? Exclude<Awaited<R>, void> : M extends object ? Exclude<Awaited<R>, void> : object

Defined in: composer/index.d.ts:80

Extract the derive (context enrichment) type from a macro

Type Parameters

Type Parameter
M