/func-nodejs-prototype

https://github.com/Azure/azure-functions-nodejs-worker/issues/480

Primary LanguageTypeScript

✨ New ✨ programming model for Node.js Azure Functions

See this rollup issue for more information on our general goals and plan of action. This repo specifically contains prototypes for the last bullet point in the "plan of action".

Code in this repo

This repo has several different options, each following this general format:

  • Option<>/src/main.ts: The main entrypoint for a sample TypeScript app
  • Option<>/types/index.d.ts: Types for a new programming model package

Here's a quick rundown of each option, but check the README in each "Option" folder for more details:

  • OldOption: The existing programming model with no changes. Purely here for the sake of comparison.
  • OptionA: The simplest programming model we can provide that still lets users define binding data in code.
  • OptionB: Rich classes for bindings
  • OptionC: A middle ground between A and B
  • OptionD: Decorators