mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
fix(angularjs): make Function.$inject optional
The $inject member of the global Function interface should be optional, to be consistent with actual functions.
This commit is contained in:
2
angularjs/angular.d.ts
vendored
2
angularjs/angular.d.ts
vendored
@@ -10,7 +10,7 @@ declare var angular: ng.IAngularStatic;
|
||||
|
||||
// Support for painless dependency injection
|
||||
interface Function {
|
||||
$inject:string[];
|
||||
$inject?: string[];
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user