Namespace: Sern
Variables
controller
• Const controller: Object
Since
1.0.0 The object passed into every plugin to control a command's behavior
Type declaration
| Name | Type |
|---|---|
next | () => OkImpl<void> |
stop | () => ErrImpl<void> |
Defined in
Functions
init
▸ init(maybeWrapper): void
Parameters
| Name | Type |
|---|---|
maybeWrapper | Wrapper | "file" |
Returns
void
Since
1.0.0
Example
src/index.ts
Sern.init({
commands: 'dist/commands',
events: 'dist/events',
})