-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Labels
Description
Issue description
When updating @serverless/typescript from 4.14.1 to 4.27.1, the resources seems to have a non-documented breaking change. It used to allow any string as the key with a properly typed value. The allowed keys were Fn::Transform and any string.
This is the failing code in question:
const X: AWS = {
// ...
resources: {
Resources: {
ApiOrderQueue: {
Properties: {
FifoQueue: true,
QueueName: ORDER_SUBSCRIPTION_QUEUE_NAME,
VisibilityTimeout: UPDATE_ORDER_STATUS_TIMEOUT_IN_SECONDS,
},
Type: "AWS::SQS::Queue",
},
},
},
};Object literal may only specify known properties, and 'ApiOrderQueue' does not exist in type '{ "Fn::Transform"?: { Name: string; Parameters?: { [k: string]: unknown; } | undefined; } | undefined; }'.ts(2353)
Would've opened up on the typescript repo, but seems the types are just derived from source here.
Context
▶ pnpm serverless --support
Serverless ϟ Framework
Welcome to Serverless Framework V.4
This is a Serverless Framework Service. Let's do some quick checks to ensure it's set up correctly.
Your Serverless Framework Service is ready to deploy.
Reactions are currently unavailable