/azure-functions-decorators

TypeScript decorators for common Azure function use cases.

Primary LanguageTypeScriptMIT LicenseMIT

Azure functions decorators

Spring / NestJS like decorators for your Azure functions.

⚠️Under heavy development, unstable! ⚠️

Install

npm i azure-functions-decorators

add

"experimentalDecorators": true

to your tsconfig.json

Example

class FunctionApp {
    @HttpFunction()
    static async httpTrigger(@QueryParameter('name') name: string): Promise<string> {
        return `Hello, ${name}`;
    }
}

Releasing

First, update the CHANGELOG. Then run these commands.

lerna version --no-private

Github Actions will publish a new release to the npm registry and create a new release on Github.