build: upgrade AngularJS typings (#24583)
Previously, we were using [@types/angularjs][1], which is deprecated and outdated (hasn't been updated for over two years). This PR switches to [@types/angular][2], which is regularly updated (based on the definitions on [DefinitelyTyped][3]). [1]: https://www.npmjs.com/package/@types/angularjs [2]: https://www.npmjs.com/package/@types/angular [3]: https://github.com/DefinitelyTyped/DefinitelyTyped PR Close #24583
This commit is contained in:

committed by
Jason Aden

parent
f841e36543
commit
7d1f9c8a7c
@ -11,7 +11,7 @@
|
||||
"rxjs/*": ["../../node_modules/rxjs/*"]
|
||||
},
|
||||
"outDir": "../../dist/examples",
|
||||
"types": ["jasmine", "node", "angularjs", "systemjs"]
|
||||
"types": ["jasmine", "node", "angular", "systemjs"]
|
||||
},
|
||||
|
||||
"include": [
|
||||
|
@ -23,7 +23,7 @@
|
||||
"skipDefaultLibCheck": true,
|
||||
"skipLibCheck": true,
|
||||
"target": "es5",
|
||||
"types": ["angularjs"]
|
||||
"types": ["angular"]
|
||||
},
|
||||
"bazelOptions": {
|
||||
"suppressTsconfigOverrideWarnings": true
|
||||
|
@ -10,7 +10,7 @@ export type Ng1Token = string;
|
||||
|
||||
export type Ng1Expression = string | Function;
|
||||
|
||||
export interface IAnnotatedFunction extends Function { $inject?: Ng1Token[]; }
|
||||
export interface IAnnotatedFunction extends Function { $inject?: ReadonlyArray<Ng1Token>; }
|
||||
|
||||
export type IInjectable = (Ng1Token | Function)[] | IAnnotatedFunction;
|
||||
|
||||
|
Reference in New Issue
Block a user