pipedream components use defineComponent with steps (previous step outputs) and $ (pipedream utilities).
pipedream components use defineComponent with a run method that receives steps (previous step outputs) and $ (pipedream utilities like $.export and $.respond).
codefmt wraps your code in the correct defineComponent structure before formatting, so you can paste just the function body and get clean, formatted code back.
pipedream supports three component types: actions, sources, and code steps. codefmt handles all three patterns, including typescript support for type-safe pipedream development. the pipedream lint plugin catches common mistakes and validates your use of $.export(), $.respond(), and other pipedream-specific APIs.
$.export('key', value) makes data available to downstream steps. it's how you pass data between pipedream steps. codefmt recognizes $ as a valid global and won't flag it as undefined.
use steps.step_name.return_value or steps.trigger.event to access data from previous workflow steps. codefmt recognizes the steps object as a valid pipedream global.
pipedream has three component types. actions are reusable steps that perform a single operation. sources are event triggers that emit data into your workflow. code steps are inline javascript or typescript blocks for custom logic. codefmt supports all three patterns and understands the defineComponent structure used by actions and sources.
yes. pipedream supports typescript natively in code steps and components, and codefmt handles ts-specific syntax like type annotations, interfaces, and generics. select the pipedream platform variant and paste your typescript code for proper formatting and linting with pipedream globals recognized.
defineComponent is the wrapper used by pipedream actions and sources. it accepts an object with props, methods, and a run method. the run method receives { steps, $ } as arguments, giving you access to previous step data and pipedream utilities. codefmt understands this structure and formats both the component wrapper and the function body correctly.