File tree 3 files changed +10
-11
lines changed
docs/dgeni-package/templates
3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 9
9
interface List< T > extends Array< T > {}
10
10
interface Map< K ,V > {}
11
11
interface StringMap< K ,V > extends Map< K ,V > {}
12
- declare type Type = ng.Type;
13
12
14
13
declare module ng {
15
14
type SetterFn = typeof Function;
Original file line number Diff line number Diff line change 10
10
11
11
{%- macro memberInfo(member, level) -%}
12
12
{$ commentBlock(member, level) $}
13
- {$ member.name $}{% if member.optional %}?{% endif -%}
13
+ {% if member.name == '__new' -%}
14
+ new
15
+ {%- elif member.name == '__call' -%}
16
+ {%- else -%}
17
+ {$ member.name $}
18
+ {%- endif -%}{% if member.optional %}?{% endif -%}
14
19
{% if member.typeParameters %}< {% for typeParam in member.typeParameters %}{$ typeParam $}{% if not loop.last %}, {% endif %}{% endfor %}> {% endif -%}
15
20
{%- if member.parameters -%}({% for param in member.parameters %}{$ param $}{% if not loop.last %}, {% endif %}{% endfor %}){%- endif -%}
16
- {%- if member.returnType -%}
17
- : {$ member.returnType $}{%- else -%}: any
18
- {%- endif -%};
21
+ {%- if member.returnType == 'Directive' %}: DirectiveAnnotation{%- elif member.returnType -%}: {$ member.returnType $}{%- else -%}: any{%- endif -%}
22
+ ;
19
23
{%- endmacro -%}
20
24
21
25
38
42
{%- if export.content -%}
39
43
{$ commentBlock(export, 3) $}
40
44
{%- endif %}
41
- {$ export.docType $} {$ export.name $}{$ export.typeParams $}{$ export.heritage $}
45
+ {$ export.docType $} {$ export.name $}{$ export.typeParams $}{%- if export.heritage == ' extends Directive' %} extends DirectiveAnnotation{% else %}{ $ export.heritage $}{% endif % }
42
46
{%- if export.docType == 'class' or export.docType == 'interface' %} {
43
47
{%- if export.newMember %}
44
48
{$ memberInfo(export.newMember, 5) $}
Original file line number Diff line number Diff line change @@ -11,13 +11,9 @@ export * from './angular2';
11
11
// 1) if the symbol is intended to be part of the public API, then re-export somewhere else
12
12
// 2) if the symbol should be omitted from the public API, then the class exposing it should
13
13
// not be exported, or should avoid exposing the symbol.
14
- export { ProtoRecord , RecordType } from './src/change_detection/proto_record' ;
15
14
export * from './src/core/compiler/element_injector' ;
16
15
export { 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' ;
21
17
export { Form } from './src/forms/directives/form_interface' ;
22
18
export { TypeDecorator , ClassDefinition } from './src/util/decorators' ;
23
19
export { Query } from './src/core/annotations_impl/di' ;
You can’t perform that action at this time.
0 commit comments