Skip to content

Commit

Permalink
docs: Update example code in introduction.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
rifont committed Sep 18, 2024
1 parent 86e9051 commit afc2e36
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sdks/framework/typescript/steps/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ title: "Step Interface"
});
```
```typescript Skip
await step.email('stepId', resolver, {
await step.email('skipped-step',async () => ({
subject: 'Hello, world!',
body: 'My email message',
}), {
skip: async (controls) => true,
});
```
Expand All @@ -36,7 +39,7 @@ title: "Step Interface"
);
```
```typescript Provider Overrides
await step.email('stepId', resolver, {
await step.email('provider-override', resolver, {
providers: {
slack: ({ controls, outputs }) => {
return {
Expand All @@ -54,7 +57,7 @@ title: "Step Interface"
});
```
```typescript Provider Passthrough
await step.email('stepId', resolver, {
await step.email('provider-passthrough', resolver, {
providers: {
sendgrid: ({ controls, outputs }) => {
return {
Expand Down

0 comments on commit afc2e36

Please sign in to comment.