Skip to main content
Temporal TypeScript SDK

Introduction to the Temporal TypeScript SDK

~10 minutesTypeScriptBeginner
  1. Introduction
  2. Project setup
  3. Durable execution

Welcome to the Temporal TypeScript SDK Background Check tutorial. The Temporal TypeScript SDK released on July 26, 2022 and provides access to the Temporal programming model using idiomatic JavaScript and TypeScript paradigms. The Temporal TypeScript SDK supports the Node.js runtime environment.

Temporal TypeScript SDK API reference

Useful programming skills and experiences

You can start working with the SDK with only TypeScript knowledge. Temporal abstracts much of the complexity of distributed systems, but a broad base of knowledge helps you design more efficient and resilient systems.

Core JavaScript or TypeScript knowledge

Required:

  • JavaScript syntax and structure, including variable declarations using let, const, and var.
  • Basic data types, such as number, string, boolean, null, and undefined.
  • Operators and control statements.
  • Basic input/output (I/O).
  • Familiarity with defining classes, constructors, properties, and methods.
  • Knowledge of how to use import and export for module-based development.
  • Familiarity with function declarations, arrow functions, and function types.
  • Understanding of modern ECMAScript features such as promises and async/await.
  • Knowledge of how to configure TypeScript projects using tsconfig.json.

Useful:

  • Proficiency in TypeScript, including type annotations, interfaces, and generics.
  • Familiarity with object-oriented programming concepts like inheritance, encapsulation, and polymorphism.
  • Understanding of composite types like Array<T>, Promise<T>, and { [key: string]: T }.
  • Basic understanding of decorators.
  • Familiarity with Node.js, the SDK runtime.

Tools

Required:

  • Package managers, such as npm, pnpm, or yarn.
  • An IDE such as Visual Studio Code (VS Code) or WebStorm.

Useful:

  • Testing tools, such as Jest or Mocha and Chai.
  • Source control systems (such as Git) and source control platforms (such as GitHub, GitLab, or Bitbucket).

Other useful knowledge

  • Testing and production: unit testing, integration testing, debugging, performance profiling, and CI/CD practices.
  • Distributed systems: event-driven architecture, eventual consistency, partitioning, replication, and stateful vs stateless processes.

Where to find code samples

Code samples are integrated into this tutorial. You can find those code samples in the temporalio/documentation-samples-typescript repository on GitHub.

Additional TypeScript code samples are in the temporalio/samples-typescript repository.

Other learning resources

Where to get help

Follow SDK updates

Contribute to the SDK

The Temporal TypeScript SDK is MIT licensed, and contributions are welcome. Review the contribution guidelines.

Get notified when we launch new educational content

New courses, tutorials, and learning resources - straight to your inbox.

Subscribe
Feedback