serverless-google-cloudfunctions icon indicating copy to clipboard operation
serverless-google-cloudfunctions copied to clipboard

feat: Add serverless configuration TS typings

Open ericrav opened this issue 2 years ago • 1 comments

These are generated from the provider JSON schema using the plugin used to generate the AWS Serverless config typings: https://github.com/serverless/typescript

Usage:

// serverless.ts
import type { GCP } from 'serverless-google-cloudfunctions';

const serverlessConfiguration: GCP = {
  provider: {
    name: 'google',
    // ...
  }
};

module.exports = serverlessConfiguration;

A future PR may add this process to the CI workflow so any provider JSON schema changes are automatically captured in changes to the TypeScript .d.ts file, as is done in @serverless/typescript

ericrav avatar Oct 12 '22 18:10 ericrav

Love this, having the types for the AWS version is really helpful.

christopher-caldwell avatar Oct 27 '22 18:10 christopher-caldwell