awesome-copilot/instructions/azure-functions-typescript.instructions.md
James Montemagno 17405dfc54 Update documentation and prompts for consistency and clarity
- Standardized description formatting in various markdown files to use single quotes.
- Added error handling utility in update-readme.js for safer file operations.
- Improved title extraction logic in update-readme.js to handle frontmatter more robustly.
- Updated chat modes section in README to reflect new emoji and sorted chat mode links.
- Cleaned up various instruction files for better readability and consistency.
- Ensured all markdown files end with a newline for better compatibility with version control.
2025-07-02 16:35:24 -07:00

813 B

description applyTo
TypeScript patterns for Azure Functions **/*.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 v20 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.