Files
website/src/content/docs/v4/api/variables/controller.md
2024-06-14 20:25:41 -05:00

756 B

editUrl, next, prev, title
editUrl next prev title
false false false controller

const controller: object

Since

1.0.0 The object passed into every plugin to control a command's behavior

Type declaration

next()

next: (val?) => Ok<undefined | Record<string, unknown>>

Parameters

val?: Record<string, unknown>

Returns

Ok<undefined | Record<string, unknown>>

stop()

stop: (val?) => Err<undefined | string>

Parameters

val?: string

Returns

Err<undefined | string>

Source

src/core/create-plugins.ts:39