From c4266fb729f792d4459930fba4aac7ec9dd33a39 Mon Sep 17 00:00:00 2001 From: Bjarki Date: Tue, 6 Oct 2020 22:39:10 +0000 Subject: [PATCH] feat(core): depend on type definitions for Trusted Types (#39207) To facilitate the upcoming Trusted Types support being added to Angular, add the TypeScript type definitions for the Trusted Types browser API as a dependency in the root package.json and types.d.ts since they're needed for compiling the Angular packages. PR Close #39207 --- package.json | 1 + packages/BUILD.bazel | 1 + packages/types.d.ts | 1 + yarn.lock | 5 +++++ 4 files changed, 8 insertions(+) diff --git a/package.json b/package.json index 27bcd64d42..2dedf24ecf 100644 --- a/package.json +++ b/package.json @@ -90,6 +90,7 @@ "@types/semver": "^6.0.2", "@types/shelljs": "^0.8.6", "@types/systemjs": "0.19.32", + "@types/trusted-types": "^1.0.6", "@types/yaml": "^1.9.7", "@types/yargs": "^15.0.5", "@webcomponents/custom-elements": "^1.1.0", diff --git a/packages/BUILD.bazel b/packages/BUILD.bazel index da0cac4228..27a75ce68a 100644 --- a/packages/BUILD.bazel +++ b/packages/BUILD.bazel @@ -13,6 +13,7 @@ ts_library( deps = [ "//packages/zone.js/lib:zone_d_ts", "@npm//@types/hammerjs", + "@npm//@types/trusted-types", ], ) diff --git a/packages/types.d.ts b/packages/types.d.ts index c10cd283d0..addcb48162 100644 --- a/packages/types.d.ts +++ b/packages/types.d.ts @@ -9,6 +9,7 @@ // This file contains all ambient imports needed to compile the packages/ source code /// +/// /// /// /// diff --git a/yarn.lock b/yarn.lock index c8758d3a83..5ecb2fc13a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2358,6 +2358,11 @@ dependencies: "@types/node" "*" +"@types/trusted-types@^1.0.6": + version "1.0.6" + resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-1.0.6.tgz#569b8a08121d3203398290d602d84d73c8dcf5da" + integrity sha512-230RC8sFeHoT6sSUlRO6a8cAnclO06eeiq1QDfiv2FGCLWFvvERWgwIQD4FWqD9A69BN7Lzee4OXwoMVnnsWDw== + "@types/webpack-sources@^0.1.5": version "0.1.7" resolved "https://registry.yarnpkg.com/@types/webpack-sources/-/webpack-sources-0.1.7.tgz#0a330a9456113410c74a5d64180af0cbca007141"