-
Notifications
You must be signed in to change notification settings - Fork 342
Open
Labels
compiler:coreIssues for @typespec/compilerIssues for @typespec/compilerfeatureNew feature or requestNew feature or requesttriaged:core
Milestone
Description
When making types, it's generally important that decorators are actually bound to the definition of the type, rather than just called on a type (it's okay to just call decorators if you receive a type for example in a decorator implementation -- but not if you make a type in which case you really have to put the decorator on the type so that it will persist if the type is cloned).
TypeKits are inconsistent about whether they accept decorators. At least the operation typekits do not accept decorators, even though operations are decorable.
All typekit create functions for types with decorable declarations should accept decorators as an argument to their descriptors:
- models
- unions
- enums
- interfaces
- operations
- namespaces
- scalars
- model properties
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
compiler:coreIssues for @typespec/compilerIssues for @typespec/compilerfeatureNew feature or requestNew feature or requesttriaged:core