This template is based on the official node
template from OpenFaaS. It allows you to write your function in Typescript, that will be compiled to javascript during the build process.
faas-cli template pull https://github.com/konsorten/openfaas-template-typescript
faas-cli new my-typescript-function --lang node-typescript