chore(typings): move comments to decorator args.
The properties of the annotation classes are not really the public API. Users will interact with these via a decorator, and the decorator takes a single arg, typed with the args class. Thus the comment is more useful on the arg class. This also fixes the problem of intellisense/autocomplete not showing the important docs as you fill in the properties in a decorator declaration.
This commit is contained in:
@@ -36,7 +36,8 @@ export interface IView {
|
||||
|
||||
|
||||
/* from annotations */
|
||||
export var Component: IComponent = <IComponent>makeDecorator(ComponentAnnotation, (fn: any) => fn.View = View);
|
||||
export var Component: IComponent =
|
||||
<IComponent>makeDecorator(ComponentAnnotation, (fn: any) => fn.View = View);
|
||||
export var Directive: IDirective = <IDirective>makeDecorator(DirectiveAnnotation);
|
||||
|
||||
/* from view */
|
||||
|
||||
Reference in New Issue
Block a user