Home > @xoram/core > definePlugin
definePlugin() function
Define a named plugin using a provided name.
Signature:
typescript
export declare function definePlugin(name: string, setup: PluginSetup): PluginDefinition;
1
Parameters
Parameter | Type | Description |
---|---|---|
name | string | the name of the plugin to recognize it by in logs, errors and tools. Will be used as the description of the symbol used for identifying the plugin. |
setup | the plugin setup function |
Returns: