You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Admittedly, I'm not sure what version of Typescript this supports, or how the types definitions are created, but with Typescript allowing template strings, would it be possible to implement something along the lines of
typeServiceProvider='AWS'|string;typeServiceName=string;// Or the entire service name listtypeDataTypeName=string;// Or the entire data type name listtypeAWSResourceType= `${ServiceProvider}::${ServiceName}::${DataTypeName}`
This would further help avoid pesky typos of things like AWS::SQS:Queue and similar problems.
Just exploring ideas, feel free to close if it's not something that could be considered.
The text was updated successfully, but these errors were encountered:
Hi @bfaulk96, thanks for the suggestion.
Typescript indeed allow string templates as valid types.
However, the typescript definitions in this repository are auto-generated from JSON-schema definitions within serverless framework. Implementing string templates would require deducting the template from JSON-schema information. Do you have an idea about the way to proceed in such workflow ?
Hey @fredericbarthelet, thanks for the response!
Unfortunately, I don't really know anything about JSON-schema, so I'm not sure if it would be possible. I'll look into it and get back to you about it 😄
Admittedly, I'm not sure what version of Typescript this supports, or how the types definitions are created, but with Typescript allowing template strings, would it be possible to implement something along the lines of
(Based on the docs here)
This would further help avoid pesky typos of things like
AWS::SQS:Queue
and similar problems.Just exploring ideas, feel free to close if it's not something that could be considered.
The text was updated successfully, but these errors were encountered: