Skip to content

Commit

Permalink
chore: Export interrupt.approval() (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith authored Dec 30, 2024
1 parent f64838c commit 29bd0f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion sdk-node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export {
validateFunctionSchema,
validateFunctionArgs,
blob,
approvalRequest
Interrupt
} from "./util";

export { createApiClient } from "./create-client";
12 changes: 0 additions & 12 deletions sdk-node/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,3 @@ export class Interrupt {
return new Interrupt("approval");
}
}

/**
* @deprecated Use Interrupt.approval() instea
*/
export const approvalRequest = () => {
return {
[INTERRUPT_KEY]: {
type: "approval",
},
};
};

0 comments on commit 29bd0f9

Please sign in to comment.