--- editUrl: false next: false prev: false title: "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`?) => `object` #### Parameters • **val?**: `Dictionary` #### Returns `object` ##### ok > `readonly` **ok**: `true` = `true` ##### value > **value**: `undefined` \| `Dictionary` ### stop() > **stop**: (`val`?) => `object` #### Parameters • **val?**: `string` #### Returns `object` ##### error > **error**: `undefined` \| `string` ##### ok > `readonly` **ok**: `false` = `false` ## Source [src/core/plugin.ts:131](https://github.com/sern-handler/handler/blob/513ac8edf4d89ef8d6a1ed18ea3d08f31adf7ddb/src/core/plugin.ts#L131)