Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function workflow
import { workflow } from "https://deno.land/x/pterodactyl@v0.4.0/src/pterodactyl.js";

Annotates a function a a workflow to be registered when provided to the pterodactyl_register script. If a script is executed normally this will return the provided function back to the caller.

Parameters

func
  • Function to annotate as a workflow.
optional
options = [UNSUPPORTED]
  • Options to change the behavior of the registered workflow