> ## Documentation Index
> Fetch the complete documentation index at: https://gadget.aurelienbbn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# global-action-no-action-type

> Disallow actionType in global action options.

| Recommended                                  | Strict                                     | Auto-fixable                                | Scope               |
| -------------------------------------------- | ------------------------------------------ | ------------------------------------------- | ------------------- |
| <Badge color="orange" size="sm">warn</Badge> | <Badge color="red" size="sm">error</Badge> | <Badge color="green" size="sm">true</Badge> | Global action files |

<Tip>Related Gadget documentation: [Gadget docs](https://docs.gadget.dev/guides/actions/code#actiontype)</Tip>

**What the linter reports:**

> Remove actionType from global actions.

## Examples

<Tabs>
  <Tab title="Incorrect">
    ```ts title="api/actions/sendEmail.ts" theme={null}
    export const options: ActionOptions = {
      // actionType only applies to model actions, not global actions
      actionType: "create",
      returnType: true,
    };
    ```
  </Tab>

  <Tab title="Correct">
    ```ts title="api/actions/sendEmail.ts" theme={null}
    export const options: ActionOptions = {
      // global actions do not support actionType
      returnType: true,
    };
    ```
  </Tab>
</Tabs>
