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:
George Kalpakas 2018-06-20 13:29:37 +03:00 committed by Jason Aden
parent f841e36543
commit 7d1f9c8a7c
6 changed files with 8 additions and 8 deletions

View File

@ -20,7 +20,7 @@
"skipDefaultLibCheck": true, "skipDefaultLibCheck": true,
"skipLibCheck": true, "skipLibCheck": true,
"target": "es5", "target": "es5",
"types": ["angularjs"] "types": ["angular"]
}, },
"exclude": [ "exclude": [
"angular1_router", "angular1_router",

View File

@ -40,7 +40,7 @@
}, },
"devDependencies": { "devDependencies": {
"@bazel/ibazel": "^0.1.1", "@bazel/ibazel": "^0.1.1",
"@types/angularjs": "1.5.14-alpha", "@types/angular": "^1.6.47",
"@types/base64-js": "1.2.5", "@types/base64-js": "1.2.5",
"@types/chai": "^4.1.2", "@types/chai": "^4.1.2",
"@types/chokidar": "1.7.3", "@types/chokidar": "1.7.3",

View File

@ -11,7 +11,7 @@
"rxjs/*": ["../../node_modules/rxjs/*"] "rxjs/*": ["../../node_modules/rxjs/*"]
}, },
"outDir": "../../dist/examples", "outDir": "../../dist/examples",
"types": ["jasmine", "node", "angularjs", "systemjs"] "types": ["jasmine", "node", "angular", "systemjs"]
}, },
"include": [ "include": [

View File

@ -23,7 +23,7 @@
"skipDefaultLibCheck": true, "skipDefaultLibCheck": true,
"skipLibCheck": true, "skipLibCheck": true,
"target": "es5", "target": "es5",
"types": ["angularjs"] "types": ["angular"]
}, },
"bazelOptions": { "bazelOptions": {
"suppressTsconfigOverrideWarnings": true "suppressTsconfigOverrideWarnings": true

View File

@ -10,7 +10,7 @@ export type Ng1Token = string;
export type Ng1Expression = string | Function; 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; export type IInjectable = (Ng1Token | Function)[] | IAnnotatedFunction;

View File

@ -52,9 +52,9 @@
"@angular-devkit/schematics" "0.5.4" "@angular-devkit/schematics" "0.5.4"
typescript "~2.6.2" typescript "~2.6.2"
"@types/angularjs@1.5.14-alpha": "@types/angular@^1.6.47":
version "1.5.14-alpha" version "1.6.47"
resolved "https://registry.yarnpkg.com/@types/angularjs/-/angularjs-1.5.14-alpha.tgz#2add80c88e1d84ade07e042918843093b6ac9808" resolved "https://registry.yarnpkg.com/@types/angular/-/angular-1.6.47.tgz#f7a31279a02c0892ed9aa76aae2da1b17791bacd"
"@types/base64-js@1.2.5": "@types/base64-js@1.2.5":
version "1.2.5" version "1.2.5"