cloudflare · Cloudflare Workers Docs
Workers TypeScript
Configures TypeScript for Cloudflare Workers by generating runtime types that match specific worker configurations, including compatibility dates, flags, and bindings.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers TypeScript
Configures TypeScript for Cloudflare Workers by generating runtime types that match specific worker configurations, including compatibility dates, flags, and bindings.
When To Use
Use when you need to synchronize TypeScript definitions with your Worker's specific compatibility flags, bindings, and runtime configuration using Wrangler.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-typescript-workflow-guide.md | A guide on generating runtime types from workerd and migrating from @cloudflare/workers-types to wrangler types for Cloudflare Workers. | Questions about a guide on generating runtime types from workerd and migrating from @cloudflare/workers-types to wrangler types for C... |
examples/workers-typescript-cloudflare-workers-typescript-wrangler-types-command.text | A text representation of the npx wrangler types command used to generate TypeScript definitions for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text representation of the npx wrangler types command used to generate TypeScript definitions for Cloudflare Workers. |
examples/workers-typescript-cloudflare-workers-typescript-wrangler-types-command-2.text | A text snippet demonstrating the wrangler types command used to generate TypeScript definitions for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text snippet demonstrating the wrangler types command used to generate TypeScript definitions for Cloudflare Workers. |
examples/workers-typescript-cloudflare-workers-typescript-wrangler-types-command-3.text | A text snippet demonstrating the pnpm wrangler types command used to generate TypeScript definitions for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text snippet demonstrating the pnpm wrangler types command used to generate TypeScript definitions for Cloudflare W... |
examples/workers-typescript-cloudflare-workers-typescript-npm-uninstall-command.text | A text snippet showing the command to uninstall the @cloudflare/workers-types package from a project. | Exact payloads, commands, or snippets shown in A text snippet showing the command to uninstall the @cloudflare/workers-types package from a project. |
examples/workers-typescript-cloudflare-workers-typescript-type-removal-command.text | A command to remove the @cloudflare/workers-types package using yarn. | Exact payloads, commands, or snippets shown in A command to remove the @cloudflare/workers-types package using yarn. |
examples/workers-typescript-cloudflare-workers-typescript-package-dependency-remo.text | A command demonstrating how to remove the @cloudflare/workers-types package using pnpm. | Exact payloads, commands, or snippets shown in A command demonstrating how to remove the @cloudflare/workers-types package using pnpm. |
examples/workers-typescript-cloudflare-workers-typescript-bun-types-removal.text | A command to remove the @cloudflare/workers-types package using the Bun package manager. | Exact payloads, commands, or snippets shown in A command to remove the @cloudflare/workers-types package using the Bun package manager. |
examples/workers-typescript-cloudflare-workers-typescript-tsconfig-configuration.text | A tsconfig.json configuration file demonstrating the compilerOptions required for developing Cloudflare Workers with TypeScript. | Exact payloads, commands, or snippets shown in A tsconfig.json configuration file demonstrating the compilerOptions required for developing Cloudflare Workers with... |
examples/workers-typescript-cloudflare-workers-typescript-npm-node-types-installa.text | The command to install Node.js type definitions for Cloudflare Workers using npm. | Exact payloads, commands, or snippets shown in The command to install Node.js type definitions for Cloudflare Workers using npm. |
examples/workers-typescript-cloudflare-workers-typescript-node-types-installation.text | A command to install Node.js type definitions for Cloudflare Workers using yarn. | Exact payloads, commands, or snippets shown in A command to install Node.js type definitions for Cloudflare Workers using yarn. |
examples/workers-typescript-cloudflare-workers-typescript-node-types-installation-2.text | A command to install Node.js type definitions for Cloudflare Workers using pnpm. | Exact payloads, commands, or snippets shown in A command to install Node.js type definitions for Cloudflare Workers using pnpm. |
examples/workers-typescript-cloudflare-workers-typescript-node-types-installation-3.text | A command to install Node.js type definitions using the Bun package manager for Cloudflare Workers TypeScript development. | Exact payloads, commands, or snippets shown in A command to install Node.js type definitions using the Bun package manager for Cloudflare Workers TypeScript develop... |
examples/workers-typescript-cloudflare-workers-typescript-tsconfig-configuration-2.text | A TypeScript configuration file demonstrating the compilerOptions and type definitions required for a Cloudflare Workers environment. | Exact payloads, commands, or snippets shown in A TypeScript configuration file demonstrating the compilerOptions and type definitions required for a Cloudflare Work... |
examples/workers-typescript-cloudflare-workers-typescript-package-json-scripts.text | A package.json configuration snippet showing scripts for development, building, type generation, and type checking in a Cloudflare Workers TypeScript project. | Exact payloads, commands, or snippets shown in A package.json configuration snippet showing scripts for development, building, type generation, and type checking in... |
examples/workers-typescript-cloudflare-workers-typescript-setup-commands.text | A list of npm commands used to generate types, build, and test a Cloudflare Workers project using TypeScript. | Exact payloads, commands, or snippets shown in A list of npm commands used to generate types, build, and test a Cloudflare Workers project using TypeScript. |
examples/workers-typescript-cloudflare-workers-typescript-setup-commands-2.text | A list of shell commands for generating types, building, and testing a Cloudflare Workers TypeScript project. | Exact payloads, commands, or snippets shown in A list of shell commands for generating types, building, and testing a Cloudflare Workers TypeScript project. |
examples/workers-typescript-cloudflare-workers-typescript-build-test-commands.text | A list of shell commands for generating types, building, and testing a Cloudflare Workers TypeScript project. | Exact payloads, commands, or snippets shown in A list of shell commands for generating types, building, and testing a Cloudflare Workers TypeScript project. |
examples/workers-typescript-cloudflare-workers-typescript-type-checking-commands.text | A list of terminal commands for running type checks, building, and testing Cloudflare Workers using TypeScript. | Exact payloads, commands, or snippets shown in A list of terminal commands for running type checks, building, and testing Cloudflare Workers using TypeScript. |
examples/workers-typescript-cloudflare-workers-typescript-type-check-commands.text | A list of yarn wrangler commands used to check types, build, and test a Cloudflare Workers TypeScript project. | Exact payloads, commands, or snippets shown in A list of yarn wrangler commands used to check types, build, and test a Cloudflare Workers TypeScript project. |
examples/workers-typescript-cloudflare-workers-typescript-type-checking-commands-2.text | A list of pnpm commands used to check types and build Cloudflare Workers projects using TypeScript. | Exact payloads, commands, or snippets shown in A list of pnpm commands used to check types and build Cloudflare Workers projects using TypeScript. |
What This Skill Covers
- TypeScript is a first-class language on Cloudflare Workers. All APIs provided in Workers are fully typed, and type definitions are generated directly from wo...
- Main sections:
Generate types that match your Worker's configuration,Migrating from @cloudflare/workers-types to wrangler types,1\. Uninstall @cloudflare/workers-types,2\. Generate runtime types using Wrangler,3\. Make sure your tsconfig.json includes the generated types.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/languages/typescript
