@azure/functions
Azure Functions types for Typescript
Last updated 5 years ago by erijiz .
MIT · Repository · Original npm · Tarball · package.json
$ npm install @azure/functions 
SYNC missed versions from official npm registry.

Type definitions for Azure Functions

This package contains type definitions for using TypeScript with Azure Functions. Follow this tutorial to create your first TypeScript function.

Versioning

The version of the package matches the version of the Node.js worker. It is recommended to install the latest version of the package matching the major version of your worker.

Worker Version Runtime Version Support level Node.js Versions
3 4 Preview 14
2 3 GA (Recommended) 14, 12, 10
1 2 GA (Maintenance mode) 10, 8

Install

Because this package only contains type definitions, it should be saved under devDependencies.

npm install @azure/functions --save-dev

Usage

import { AzureFunction, Context, HttpRequest } from "@azure/functions";

const index: AzureFunction = async function (context: Context, req: HttpRequest) {
    context.log('JavaScript HTTP trigger function processed a request.');
    if (req.query.name || (req.body && req.body.name)) {
        context.res = {
            status: "200",
            body: "Hello " + (req.query.name || req.body.name)
        };
    } else {
        context.res = {
            status: 400,
            body: "Please pass a name on the query string or in the request body"
        };
    }
}

export { index };

Contributing

See "Contributing" section on the Node.js worker repo here.

Current Tags

  • 4.11.1                                ...           beta (10 months ago)
  • 4.17.0                                ...           latest (a month ago)
  • 4.11.1                                ...           next (10 months ago)
  • 4.16.0-preview                                ...           preview (6 months ago)

86 Versions

  • 4.17.0                                ...           a month ago
  • 4.16.5                                ...           2 months ago
  • 4.16.4                                ...           2 months ago
  • 4.16.2                                ...           5 months ago
  • 3.6.0                                ...           5 months ago
  • 4.16.1                                ...           5 months ago
  • 3.5.2                                ...           5 months ago
  • 4.16.0-preview                                ...           6 months ago
  • 4.16.0                                ...           6 months ago
  • 4.15.0                                ...           6 months ago
  • 4.15.1-preview                                ...           6 months ago
  • 4.15.0-preview                                ...           6 months ago
  • 4.14.0                                ...           7 months ago
  • 4.13.0                                ...           7 months ago
  • 4.12.0                                ...           8 months ago
  • 4.11.2                                ...           10 months ago
  • 4.12.0-preview.2                                ...           10 months ago
  • 4.12.0-preview.1                                ...           10 months ago
  • 4.11.1                                ...           10 months ago
  • 4.11.0                                ...           a year ago
  • 4.10.0                                ...           a year ago
  • 4.9.0                                ...           a year ago
  • 4.8.2                                ...           a year ago
  • 4.8.1                                ...           a year ago
  • 4.7.4-preview                                ...           a year ago
  • 4.7.3-preview [deprecated]           ...           a year ago
  • 4.8.0                                ...           a year ago
  • 4.7.2-preview                                ...           a year ago
  • 4.7.3-beta.0                                ...           a year ago
  • 4.7.3-beta-0                                ...           a year ago
  • 4.8.0-experimental.0                                ...           a year ago
  • 4.7.3 [deprecated]           ...           a year ago
  • 4.7.2                                ...           2 years ago
  • 4.7.1-preview                                ...           2 years ago
  • 4.7.2-beta.0                                ...           2 years ago
  • 4.7.1-beta.0                                ...           2 years ago
  • 4.0.11-beta.0                                ...           2 years ago
  • 4.7.0-beta.0-alpha.20250402.1                                ...           2 years ago
  • 4.7.0-beta.0-alpha.20250331.2                                ...           2 years ago
  • 4.7.0-alpha.20250330.5                                ...           2 years ago
  • 4.7.0-alpha.20250329.2 [deprecated]           ...           2 years ago
  • 4.7.0                                ...           2 years ago
  • 4.6.1                                ...           2 years ago
  • 4.6.0                                ...           2 years ago
  • 4.5.1                                ...           2 years ago
  • 4.5.0                                ...           3 years ago
  • 4.4.0                                ...           3 years ago
  • 4.3.0                                ...           3 years ago
  • 4.2.0                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 4.0.1                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 4.0.0-alpha.13                                ...           3 years ago
  • 4.0.0-alpha.12                                ...           3 years ago
  • 4.0.0-alpha.12.20230912.4                                ...           3 years ago
  • 4.0.0-alpha.11                                ...           3 years ago
  • 4.0.0-alpha.10                                ...           4 years ago
  • 3.5.1                                ...           4 years ago
  • 4.0.0-alpha.9                                ...           4 years ago
  • 4.0.0-alpha.8                                ...           4 years ago
  • 4.0.0-alpha.7                                ...           4 years ago
  • 4.0.0-alpha.6                                ...           4 years ago
  • 3.5.0                                ...           4 years ago
  • 4.0.0-alpha.5                                ...           4 years ago
  • 3.5.0-alpha.5                                ...           4 years ago
  • 4.0.0-alpha.4                                ...           4 years ago
  • 3.5.0-alpha.4                                ...           4 years ago
  • 4.0.0-alpha.3                                ...           4 years ago
  • 4.0.0-alpha.2                                ...           4 years ago
  • 4.0.0-alpha.1                                ...           4 years ago
  • 3.5.0-alpha.3                                ...           4 years ago
  • 3.5.0-alpha.2                                ...           4 years ago
  • 3.5.0-alpha.1                                ...           4 years ago
  • 3.2.0                                ...           5 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 2.0.0-beta.0                                ...           5 years ago
  • 1.2.3                                ...           6 years ago
  • 1.2.2                                ...           6 years ago
  • 1.2.0                                ...           7 years ago
  • 1.0.3                                ...           8 years ago
  • 1.0.2-beta2                                ...           8 years ago
  • 1.0.2-beta1                                ...           8 years ago
  • 1.0.1-beta2                                ...           8 years ago
  • 1.0.1-beta1                                ...           8 years ago
Downloads
Total 268
Today 0
This Week 0
This Month 245
Last Day 0
Last Week 105
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE