Skip to content

Commit 4cb89cb

Browse files
committed
Export the handleError function types from sdk
1 parent f4fc026 commit 4cb89cb

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

packages/trigger-sdk/src/v3/config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
export type { ProjectConfig as TriggerConfig } from "@trigger.dev/core/v3";
1+
export type {
2+
ProjectConfig as TriggerConfig,
3+
HandleErrorArgs,
4+
HandleErrorFunction,
5+
} from "@trigger.dev/core/v3";

references/v3-catalog/src/handleError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { HandleErrorFunction } from "@trigger.dev/core/v3";
1+
import type { HandleErrorFunction } from "@trigger.dev/sdk/v3";
22

33
export const handleError: HandleErrorFunction = async (payload, error, { ctx, retry }) => {
44
console.log("GOT TO handleError FUNCTION");

references/v3-catalog/trigger.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { ProjectConfig } from "@trigger.dev/core/v3";
1+
import type { TriggerConfig } from "@trigger.dev/sdk/v3";
22

33
export { handleError } from "./src/handleError";
44

5-
export const config: ProjectConfig = {
5+
export const config: TriggerConfig = {
66
project: "yubjwjsfkxnylobaqvqz",
77
retries: {
88
enabledInDev: true,

0 commit comments

Comments
 (0)