mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Miscellaneous lint fixes (#20849)
This commit is contained in:
@@ -178,7 +178,7 @@ mod.controller('name', class {
|
||||
// $onChanges(x: number) { }
|
||||
});
|
||||
mod.controller({
|
||||
MyCtrl: class{},
|
||||
MyCtrl: class {},
|
||||
MyCtrl2() {},
|
||||
MyCtrl3: ['$fooService', ($fooService: any) => { }]
|
||||
});
|
||||
@@ -229,7 +229,7 @@ mod.provider(My.Namespace);
|
||||
mod.service('name', ($scope: ng.IScope) => {});
|
||||
mod.service('name', ['$scope', ($scope: ng.IScope) => {}]);
|
||||
mod.service({
|
||||
MyCtrl: class{},
|
||||
MyCtrl: class {},
|
||||
MyCtrl2: () => {}, // tslint:disable-line:object-literal-shorthand
|
||||
MyCtrl3: ['$fooService', ($fooService: any) => {}]
|
||||
});
|
||||
@@ -491,9 +491,7 @@ namespace TestInjector {
|
||||
|
||||
// $injector.instantiate
|
||||
{
|
||||
class Foobar {
|
||||
constructor($q) {}
|
||||
}
|
||||
class Foobar {}
|
||||
const result: Foobar = $injector.instantiate(Foobar);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user