Skip to main content
Go to Latest
type alias types.ExpectedExports.action
import { type types } from "https://deno.land/x/embassyd_sdk@v0.3.4-rev0.lib0.alpha2/mod.ts";
const { action } = types.ExpectedExports;

Actions are used so we can effect the service, like deleting a directory. One old use case is to add a action where we add a file, that will then be run during the service starting, and that file would indicate that it would rescan all the data.

definition: { [id: string]: (effects: Effects, config?: ConfigSpec) => Promise<ResultType<ActionResult>>; }