https://github.com/bomret/azure-functions-typedefinitions
Type definitions for Azure Functions
https://github.com/bomret/azure-functions-typedefinitions
azure azure-functions nodejs types typescript
Last synced: about 2 months ago
JSON representation
Type definitions for Azure Functions
- Host: GitHub
- URL: https://github.com/bomret/azure-functions-typedefinitions
- Owner: Bomret
- License: isc
- Created: 2018-03-18T22:52:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T09:49:22.000Z (over 6 years ago)
- Last Synced: 2025-03-22T16:04:53.452Z (2 months ago)
- Topics: azure, azure-functions, nodejs, types, typescript
- Homepage: https://www.npmjs.com/package/azure-functions-typedefinitions
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure Functions Type Definitions
[](https://www.npmjs.com/package/azure-functions-typedefinitions)
[](https://github.com/bomret/azure-functions-typedefinitions/blob/master)These are Typescript type definitions that were extracted from the official [Azure Functions Nodejs Worker](https://github.com/Azure/azure-functions-nodejs-worker) repository on GitHub.
Current state: `2018-06-07`
## Install
```
npm i -D azure-functions-typedefinitions
```## Usage
```typescript
import { IHttpContext, HttpRequest } from "azure-functions-typedefinitions";export function run(context: IHttpContext, req: HttpRequest): void {
context.log.info("Hello from a typed function!");const resBody = {
invocationId: context.invocationId,
name: context.executionContext.functionName,
startTimeUtc: context.bindingData.sys.utcNow
};context.res.status(200).json(resBody);
}
```