1
1
import { PropertyMemberDoc } from 'dgeni-packages/typescript/api-doc-types/PropertyMemberDoc' ;
2
- import { DirectiveMetadata } from './directive-metadata' ;
3
2
import { hasMemberDecorator } from './decorators' ;
4
3
5
4
/** Interface that describes an Angular property binding. Can be either an input or output. */
@@ -12,7 +11,7 @@ export interface PropertyBinding {
12
11
* Detects whether the specified property member is an input. If the property is an input, the
13
12
* alias and input name will be returned.
14
13
*/
15
- export function getInputBindingData ( doc : PropertyMemberDoc , metadata : DirectiveMetadata )
14
+ export function getInputBindingData ( doc : PropertyMemberDoc , metadata : Map < string , any > )
16
15
: PropertyBinding | undefined {
17
16
return getBindingPropertyData ( doc , metadata , 'inputs' , 'Input' ) ;
18
17
}
@@ -21,7 +20,7 @@ export function getInputBindingData(doc: PropertyMemberDoc, metadata: DirectiveM
21
20
* Detects whether the specified property member is an output. If the property is an output, the
22
21
* alias and output name will be returned.
23
22
*/
24
- export function getOutputBindingData ( doc : PropertyMemberDoc , metadata : DirectiveMetadata )
23
+ export function getOutputBindingData ( doc : PropertyMemberDoc , metadata : Map < string , any > )
25
24
: PropertyBinding | undefined {
26
25
return getBindingPropertyData ( doc , metadata , 'outputs' , 'Output' ) ;
27
26
}
@@ -30,7 +29,7 @@ export function getOutputBindingData(doc: PropertyMemberDoc, metadata: Directive
30
29
* Method that detects the specified type of property binding (either "output" or "input") from
31
30
* the directive metadata or from the associated decorator on the property.
32
31
*/
33
- function getBindingPropertyData ( doc : PropertyMemberDoc , metadata : DirectiveMetadata ,
32
+ function getBindingPropertyData ( doc : PropertyMemberDoc , metadata : Map < string , any > ,
34
33
propertyName : string , decoratorName : string ) {
35
34
36
35
if ( metadata ) {
0 commit comments