0.2.0 • Published 7 years ago

azure-functions-types v0.2.0

Weekly downloads
32
License
MIT
Repository
-
Last release
7 years ago

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