File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed
docs/dgeni-package/templates Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 99interface List< T > extends Array< T > {}
1010interface Map< K ,V > {}
1111interface StringMap< K ,V > extends Map< K ,V > {}
12- declare type Type = ng.Type;
1312
1413declare module ng {
1514 type SetterFn = typeof Function;
Original file line number Diff line number Diff line change 1313 {$ member.name $}{% if member.optional %}?{% endif -%}
1414{% if member.typeParameters %}< {% for typeParam in member.typeParameters %}{$ typeParam $}{% if not loop.last %}, {% endif %}{% endfor %}> {% endif -%}
1515{%- if member.parameters -%}({% for param in member.parameters %}{$ param $}{% if not loop.last %}, {% endif %}{% endfor %}){%- endif -%}
16- {%- if member.returnType -%}
17- : {$ member.returnType $}{%- else -%}: void
16+ {%- if member.returnType == 'Directive' %}: DirectiveAnnotation{%- elif member.returnType -%}: {$ member.returnType $}{%- else -%}: void
1817{%- endif -%};
1918{%- endmacro -%}
2019
3837 {%- if export.content -%}
3938 {$ commentBlock(export, 3) $}
4039 {%- endif %}
41- {$ export.docType $} {$ export.name $}{$ export.typeParams $}{$ export.heritage $}
40+ {$ export.docType $} {$ export.name $}{$ export.typeParams $}{%- if export.heritage == ' extends Directive' %} extends DirectiveAnnotation{% else %}{ $ export.heritage $}{% endif % }
4241 {%- if export.docType == 'class' or export.docType == 'interface' %} {
4342 {%- if export.newMember %}
4443 {$ memberInfo(export.newMember) $}
Original file line number Diff line number Diff line change @@ -11,13 +11,9 @@ export * from './angular2';
1111// 1) if the symbol is intended to be part of the public API, then re-export somewhere else
1212// 2) if the symbol should be omitted from the public API, then the class exposing it should
1313// not be exported, or should avoid exposing the symbol.
14- export { ProtoRecord , RecordType } from './src/change_detection/proto_record' ;
1514export * from './src/core/compiler/element_injector' ;
1615export { DependencyAnnotation } from './src/di/annotations_impl' ;
17- // FIXME: this is a workaround for https://github.com/angular/angular/issues/2356
18- // We export the Directive *annotation* instead of the *decorator*.
19- // But it breaks the build.
20- export { Directive , LifecycleEvent } from './src/core/annotations_impl/annotations' ;
16+ export { LifecycleEvent } from './src/core/annotations_impl/annotations' ;
2117export { Form } from './src/forms/directives/form_interface' ;
2218export { TypeDecorator , ClassDefinition } from './src/util/decorators' ;
2319export { Query } from './src/core/annotations_impl/di' ;
You can’t perform that action at this time.
0 commit comments