controller
constcontroller:object
Since
1.0.0 The object passed into every plugin to control a command’s behavior
Type declaration
next()
next: (
val?) =>object
Parameters
• val?: Record<string, unknown>
Returns
object
ok
readonlyok:true=true
value
value:
undefined|Record<string,unknown>
stop()
stop: (
val?) =>object
Parameters
• val?: string
Returns
object
error
error:
undefined|string
ok
readonlyok:false=false