Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Feature
Description
List of arguments to be created due to the introduction of this PR
--decorator
flag in subcommandstart
specifies the type of decorator to use on the main worker and event worker. If not specified, the decorator feature is disabled. (possible inputs:tc39
,typescript
,typescript_with_metadata
)--decorator
flag in subcommandbundle
specifies the type of decorator to use when bundling. If not specified, the decorator feature is disabled. (possible inputs are same above)Apart from the CLI arguments above, when you create a User Worker via the API in the main service, you can specify the type of decorator to use on the User Worker.
There are differences between Typescript's implementation of the decorator specification and the decorator specification specified by Ecma TC39, see the link below for a description of the differences:
tc39/proposal-decorators#329
Note that the
typescript_with_metadata
option allows concrete types in design time to be output with metadata during the transpiling process. This option is equivalent toemitDecoratorMetadata
oftsconfig.json
.For more information on this topic, see the link below:
https://www.typescriptlang.org/tsconfig#emitDecoratorMetadata
Resolves #296