What the linter reports:
actionType “value” must be create, update, delete, or custom.
Examples
- Incorrect
- Correct
api/models/widget/actions/create.ts
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Disallow invalid actionType values in model action options.
| Recommended | Strict | Auto-fixable | Scope |
|---|---|---|---|
| warn | error | false | Model action files |
actionType “value” must be create, update, delete, or custom.
export const options: ActionOptions = {
// "scheduler" is not valid - must be create, update, delete, or custom
actionType: "scheduler",
};
export const options: ActionOptions = {
// valid actionType values: create, update, delete, custom
actionType: "custom",
};
Was this page helpful?