serverless / serverless-plugin-typescript

Serverless plugin for zero-config Typescript support
MIT License
784 stars 224 forks source link

Add support to new AWS Lambda Runtime nodejs20.x #301

Open MikeAtJulaya opened 10 months ago

MikeAtJulaya commented 10 months ago

Hello 👋🏼

Actually types reject new runtime version:

Cannot load "serverless.ts": Initialization error: TSError: ⨯ Unable to compile TypeScript:
serverless.ts:14:5 - error TS2820: Type '"nodejs20.x"' is not assignable to type 'AwsLambdaRuntime | undefined'. Did you mean '"nodejs12.x"'?

In Serverless Framework, this runtime is available since v3.37.0.

It will be great to support this new one.