Code Monkey home page Code Monkey logo

serverless-typescript's Introduction

Serverless Typescript

Typescript definitions for Serverless serverless.ts service file. | AWS, Google, Azure

Packages

  • aws: Scoped package named @hashaio/aws-lambda-typescript, implements typescript definitions for Serverless AWS Lambda.
  • azure: Scoped package named @hashaio/azure-functions-typescript, implements typescript definitions for Serverless Azure Functions
  • google: Scoped package named @hashaio/google-functions-typescript, implements typescript definitions for Serverless Google Cloud Functions
  • serverless-schema-plugin: Compile serverless json schema to typescript typings
  • eslint-config-custom: eslint configurations (includes eslint-config-next and eslint-config-prettier)

Each package is 100% TypeScript.

Installation

npm i @hashaio/google-functions-typescript --save-dev

or

yarn add @hashaio/google-functions-typescript --dev

or

pnpm install @hashaio/google-functions-typescript --dev

Usage

serverless.ts file

import type { Google } from '@hashaio/google-functions-typescript';

const serverlessConfiguration: Google = {
  service: 'google-nodejs-typescript',
  frameworkVersion: '*',
  provider: {
    name: 'google',
    runtime: 'nodejs16',
  },
  functions: {
    hello: {
      handler: 'handler.hello',
      events: [
        {
          http: {
            method: 'get',
            path: 'hello',
          }
        }
      ]
    }
  }
}

module.exports = serverlessConfiguration;

Contributing

Build

This repository is used in the npx create-turbo@latest command, and selected when choosing which package manager you wish to use with your monorepo (pnpm).

To build all apps and packages, run the following command:

pnpm run build

No PR including modifications on index.d.ts will be accepted. The service file Typescript definitions enclosed within this file are automatically generated at each new Serverless framework release. If any manual modification was added to this file, those would be overwritten during the next Serverless version release and TypeScript definitions generation process.

We love our contributors!

Check out our help wanted or good first issue labels to find issues we want to move forward on with your help.

serverless-typescript's People

Contributors

tsui66 avatar renovate[bot] avatar

Stargazers

Roman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.