Class PluginModule<TConfig, TEnv>Abstract
Type Parameters
-
TConfig
-
TEnv extends Record<string, unknown> = Record<string, unknown>
Constructors
constructor
- new PluginModule<TConfig, TEnv>(config): PluginModule<TConfig, TEnv>
-
Type Parameters
-
TConfig
-
TEnv extends Record<string, unknown> = Record<string, unknown>
Properties
Private
_config
_config: TConfig
Accessors
config
- get config(): TConfig
-
Returns TConfig
Methods
_wrap_invoke
- _wrap_invoke<TArgs, TResult>(method, args, client, env): Promise<Result<TResult, Error>>
-
Type Parameters
-
TArgs extends Record<string, unknown> = Record<string, unknown>
-
TResult = unknown
Parameters
-
method: string
-
args: TArgs
-
-
env: TEnv
Returns Promise<Result<TResult, Error>>
getMethod
- getMethod<TArgs, TResult, TEnv>(method): undefined | PluginMethod<TArgs, TResult, Record<string, unknown>>
-
Type Parameters
-
TArgs extends Record<string, unknown> = Record<string, unknown>
-
TResult = unknown
-
TEnv extends Record<string, unknown> = Record<string, unknown>
Returns undefined | PluginMethod<TArgs, TResult, Record<string, unknown>>