Add typing for object syntax on component registerer (#25507)

This commit is contained in:
Oscar Busk
2018-05-03 19:51:31 +02:00
committed by Andy
parent 6372e41de5
commit f4e0c531ba
2 changed files with 19 additions and 1 deletions

View File

@@ -1138,7 +1138,8 @@ angular.module('multiSlotTranscludeExample', [])
};
});
angular.module('componentExample', [])
// $ExpectType IModule
const componentModule = angular.module('componentExample', [])
.component('counter', {
require: {ctrl: '^ctrl'},
bindings: {
@@ -1160,6 +1161,16 @@ angular.module('componentExample', [])
},
template: '',
transclude: true
})
.component({
aThirdComponent: {
controller: class AThirdComponentController {
count: number;
},
bindings: {
count: '='
}
}
});
interface ICopyExampleUser {