Skip to content

Add TypeScript#31

Open
donald-pinckney wants to merge 16 commits intodevfrom
add-ts
Open

Add TypeScript#31
donald-pinckney wants to merge 16 commits intodevfrom
add-ts

Conversation

@donald-pinckney
Copy link
Collaborator

@donald-pinckney donald-pinckney commented Feb 23, 2026

TypeScript support for temporal-developer skill!

This PR adds TypeScript support into the skill. Its structure is parallel and similar to Python's.

Several automated agentic review passes were done on this content to check for content alignment with python and core, and to compare against docs for factual accuracy.

@donald-pinckney donald-pinckney changed the title Add TypeScript [WIP] Add TypeScript Feb 23, 2026

The TypeScript SDK provides `TestWorkflowEnvironment` for testing workflows with time-skipping and activity mocking support. Use `createTimeSkipping()` for automatic time advancement when testing workflows with timers, or `createLocal()` for a full local server without time-skipping.

**Note:** Prefer to use `createLocal()` for full-featured support. Only use `createTimeSkipping()` if you genuinely need time skipping for testing your workflow.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? Like it is in Python, is it also preferable to use createLocal rather than createTimeSkipping in TypeScript? (unless you need time skipping).

import { AsyncCompletionClient } from '@temporalio/client';

async function doSomeWork(taskToken: Uint8Array): Promise<void> {
const client = new AsyncCompletionClient();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is new AsyncCompletionClient() or new Client().activity preferred here? Official sources are contradictory actually.

  • API Docs say "Typically AsyncCompletionClient should not be instantiated directly"
  • The docs / samples only show directly instantiating AsyncCompletionClient

@donald-pinckney donald-pinckney marked this pull request as ready for review February 27, 2026 23:10
@donald-pinckney donald-pinckney changed the title [WIP] Add TypeScript Add TypeScript Feb 27, 2026
Co-authored-by: James Watkins-Harvey <mjameswh@users.noreply.github.com>
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.

2 participants