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:
Alex Eagle
2015-07-06 16:32:29 -07:00
parent b10d7a2e51
commit 8681f79182
3 changed files with 107 additions and 108 deletions
@@ -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 */