mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Add typing for object syntax on component registerer (#25507)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user