Skip to content

Function: defineAddon()

defineAddon<AddonOptions>(addonFunc): (addonOptions?, valaxyOptions?) => ValaxyAddon<Record<string, any>> & object

Type Parameters

AddonOptions = object

Parameters

addonFunc

Returns

Function

Parameters

addonOptions?: AddonOptions

valaxyOptions?: ResolvedValaxyOptions<Config>

Returns

ValaxyAddon<Record<string, any>> & object

Defined in

packages/valaxy/node/config/addon.ts:15