Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions 5 .changeset/light-donkeys-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@trigger.dev/sdk": patch
---

fix(sdk): Re-export schemaTask types to prevent the TypeScript error TS2742: The inferred type of 'task' cannot be named without a reference to '@trigger.dev/core/v3'. This is likely not portable.
5 changes: 4 additions & 1 deletion 5 packages/trigger-sdk/src/v3/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
TaskRunExecutionResult,
TaskRunPromise,
} from "@trigger.dev/core/v3";
import { PollOptions, runs } from "./runs.js";
import { tracer } from "./tracer.js";

import type {
Expand Down Expand Up @@ -115,6 +114,10 @@ export type {
TaskPayload,
TaskRunResult,
TriggerOptions,
TaskWithSchema,
TaskWithSchemaOptions,
TaskSchema,
TaskOptionsWithSchema,
};

export { SubtaskUnwrapError, TaskRunPromise };
Expand Down
8 changes: 8 additions & 0 deletions 8 packages/trigger-sdk/src/v3/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ import type {
TriggerOptions,
TaskRunResult,
TaskFromIdentifier,
TaskWithSchemaOptions,
TaskSchema,
TaskWithSchema,
TaskOptionsWithSchema,
} from "./shared.js";

export type {
Expand All @@ -56,6 +60,10 @@ export type {
TriggerOptions,
TaskRunResult,
TaskFromIdentifier,
TaskWithSchemaOptions,
TaskSchema,
TaskWithSchema,
TaskOptionsWithSchema,
};

export type * from "./hooks.js";
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.