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
typeObjectLiteralGetterDecoratorContext={kind: "object-getter";// or just "getter"?
... // other properties from ObjectLiteralMethodDecoratorContext}typeObjectLiteralSetterDecoratorContext={kind: "object-setter";// or just "setter"?
... // other properties from ObjectLiteralMethodDecoratorContext}
I can think of a new option: add a new property in the context.
I'd thought about having context.metadata only be available if the decorated element itself could have metadata (i.e., class, function), while you would use context.container.metadata if you were a child element (i.e., methods, getters, setters, fields, etc.). That would have allowed methods have access to both own metadata and container metadata, so a function decorator could be used on a method more readily.
I can think of a new option: add a new property in the context.
this allows us to extend in the future, for example, if we have
enum
orprotocol
as the syntatic container.The text was updated successfully, but these errors were encountered: