Skip to content

Commit 23fa2db

Browse files
committed
Fix angular IAttributes#$normalize() definition
1 parent 4e025ad commit 23fa2db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

angularjs/angular-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ function test_IAttributes(attributes: ng.IAttributes){
507507
}
508508

509509
test_IAttributes({
510-
$normalize: function (classVal){},
510+
$normalize: function (classVal){ return "foo" },
511511
$addClass: function (classVal){},
512512
$removeClass: function(classVal){},
513513
$set: function(key, value){},

angularjs/angular.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ declare module angular {
306306
*
307307
* For further information check out the guide on @see https://docs.angularjs.org/guide/directive#matching-directives
308308
*/
309-
$normalize(name: string): void;
309+
$normalize(name: string): string;
310310

311311
/**
312312
* Adds the CSS class value specified by the classVal parameter to the

0 commit comments

Comments
 (0)