Home › All rules › Community › Azure Functions Typescript Copilot Instructions

Azure Functions Typescript Copilot Instructions

TypeScript patterns for Azure Functions

GitHub CopilotTypeScriptCommunity (MIT)

How to use

Save this as .github/instructions/azure-functions-typescript.instructions.md in your project, commit it, and GitHub Copilot will apply it to matching files. Review it first: community files can be opinionated or out of date.

Note: Review and test before use. Provided as is, without warranty. See Terms.

.github/instructions/azure-functions-typescript.instructions.mdDownload  
---
description: 'TypeScript patterns for Azure Functions'
applyTo: '**/*.ts, **/*.js, **/*.json'
---

## Guidance for Code Generation
- Generate modern TypeScript code for Node.js
- Use `async/await` for asynchronous code
- Whenever possible, use Node.js v22 LTS built-in modules instead of external packages
- Always use Node.js async functions, like `node:fs/promises` instead of `fs` to avoid blocking the event loop
- Ask before adding any extra dependencies to the project
- The API is built using Azure Functions using `@azure/functions@4` package.
- Each endpoint should have its own function file, and use the following naming convention: `src/functions/<resource-name>-<http-verb>.ts`
- When making changes to the API, make sure to update the OpenAPI schema (if it exists) and `README.md` file accordingly.

More: TypeScript rules · all community rules

Related rules

TypeScript npm library AGENTS.md

AGENTS.md for publishing TypeScript npm packages: ESM exports maps, bundling with tsdown, type checks, and changesets.

AGENTS.mdTypeScript

TypeScript strict mode rules

Cursor rules for strict TypeScript 5.9+: no any, unknown narrowing, discriminated unions, satisfies, and runtime validation.

CursorTypeScript

TypeScript Clasp Cursor Rules

Cursor rules for TypeScript development with Clasp app script integration.

CursorTypeScriptCommunity (CC0)

TypeScript Code Convention Cursor Rules

Cursor rules for TypeScript development with code convention integration.

CursorTypeScriptCommunity (CC0)

TypeScript Llm Tech Stack Cursor Rules

Cursor rules for TypeScript development with LLM tech stack integration.

CursorTypeScriptCommunity (CC0)

TypeScript Cursor Rules

TypeScript coding standards and best practices for modern web development

CursorTypeScriptCommunity (CC0)

Get new rules weekly

One email a week: fresh rule files, agent tips, and what's changing in Cursor, Claude Code and Copilot. Free, unsubscribe anytime.

Opens the Rulestack Newsletter on beehiiv in a new tab. Or subscribe directly on beehiiv.