Skip to main content
RecommendedStrictAuto-fixableScope
warnerrorfalseGadget action files
Related Gadget documentation: Gadget docs
What the linter reports:
onSuccess requires a run export.

Examples

api/models/widget/actions/create.ts
// onSuccess cannot exist without a run export
export const onSuccess: ActionOnSuccess = async ({ record }) => {
  await doSomething(record);
};
Last modified on March 10, 2026