Skip to content

docs: fix TypeScript import for Prompt types - #4842

Closed
MauryaQbit wants to merge 2 commits into
triggerdotdev:mainfrom
MauryaQbit:main
Closed

docs: fix TypeScript import for Prompt types#4842
MauryaQbit wants to merge 2 commits into
triggerdotdev:mainfrom
MauryaQbit:main

Conversation

@MauryaQbit

Copy link
Copy Markdown

Resolves #4812 and #4824\n\n- Fixes TS2305 errors by using namespace import pattern\n- Changes import type { PromptHandle, PromptIdentifier, PromptVariables } to import type { prompts }\n- Updates type references to use prompts.PromptIdentifier and prompts.PromptVariables\n- Docs-only change, one issue, matches one-issue-per-PR rule\n\nVouch required: This is the contributor's first PR. A maintainer will need to vouch before merging.

- Gate the 'Use native build server' UI option on isManagedCloud
- Gate the enqueueBuild API path on isCloud() condition
- Return clear error from API when feature not available
- Add .server-changes/ file for server-only user-facing change

Resolves triggerdotdev#4835
- Change import from direct type import to namespace import
- PromptHandle, PromptIdentifier, PromptVariables are in the prompts namespace,
  not directly exported from @trigger.dev/sdk
- Matches the pattern used throughout the rest of the documentation

Resolves triggerdotdev#4812 (the TypeScript compilation issue)
@changeset-bot

changeset-bot Bot commented Aug 30, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 772a0c6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

Hi @MauryaQbit, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md for more details.

@github-actions github-actions Bot closed this Aug 30, 2026
@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 43a1f106-65ef-4e1d-a5fe-a9cbaf57fddc

📥 Commits

Reviewing files that changed from the base of the PR and between 9cb5028 and 772a0c6.

📒 Files selected for processing (4)
  • .server-changes/hide-native-deployments-self-hosted.md
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.settings.integrations/route.tsx
  • apps/webapp/app/v3/services/deployment.server.ts
  • docs/ai/prompts.mdx

Walkthrough

The web application now detects managed cloud availability and disables the native build server option on self-hosted instances. The deployment service rejects native Git-based builds on non-cloud platforms with a native_build_not_available error. A changelog entry documents this behavior. The prompt type documentation now references prompts.PromptIdentifier and prompts.PromptVariables.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Warning

⚠️ This pull request shows signs of AI-generated slop (description_diff_mismatch). It has been flagged by CodeRabbit slop detection and should be reviewed carefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken TypeScript sample in your AI Prompts docs

1 participant