azure-functions-types

Types for Azure Functions

Usage no npm install needed!

<script type="module">
  import azureFunctionsTypes from 'https://cdn.skypack.dev/azure-functions-types';
</script>

README

Azure Functions Types
Functions Types

Azure Functions Type Definitions for TypeScript

Install

npm install --save azure-functions-types

Usage

import { HttpContext, FunctionRequest, HttpStatusCodes } from 'azure-functions-types'

export const index = (context: HttpContext, req: FunctionRequest) => {
  if (req.method === 'GET')
    context.res.status = HttpStatusCodes.OK

  context.done(null, {})
}

License

MIT

This project is based on the previous work of Christopher Andersson