Class BasePlugin<T>Abstract
Type Parameters
-
T = Record<string, unknown>
Constructors
constructor
- new BasePlugin<T>(): BasePlugin<T>
-
Type Parameters
-
T = Record<string, unknown>
Properties
Private
_apiClient
_apiClient: APIClient
Private
_config
_config: T
Optional
Readonly
configSchema
Protected
logger
logger: Logger
Accessors
apiClient
- get apiClient(): APIClient
-
Returns APIClient
config
- get config(): T
-
Returns T
dataPath
- get dataPath(): string
-
Returns string
events
- get events(): string[]
-
Returns string[]
name
- get name(): string
-
Returns string
Abstract
nodeModulePath
- get nodeModulePath(): string
-
Returns string
Methods
init
- init(context: PluginInitContext<Record<string, unknown>>): Promise<void>
-
Returns Promise<void>
Abstract
load
- load(): Promise<void>
-
Returns Promise<void>
Abstract
unload
- unload(): Promise<void>
-
Returns Promise<void>