From c13a4b8c03a6006fc4bb8e47366f861421aee7c9 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Thu, 12 Dec 2019 10:09:00 +0000 Subject: [PATCH] style(common): remove unnecessary jsdoc type (#34369) These types cause the compiler to give warnings, which add noise to compilation logs. PR Close #34369 --- packages/common/upgrade/src/params.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/common/upgrade/src/params.ts b/packages/common/upgrade/src/params.ts index d1f7917ff6..8763964b57 100644 --- a/packages/common/upgrade/src/params.ts +++ b/packages/common/upgrade/src/params.ts @@ -225,10 +225,9 @@ function _stripIndexHtml(url: string): string { * * @private * @param str value potential URI component to check. - * @returns {boolean} True if `value` can be decoded - * with the decodeURIComponent function. + * @returns the decoded URI if it can be decoded or else `undefined`. */ -function tryDecodeURIComponent(value: string) { +function tryDecodeURIComponent(value: string): string|undefined { try { return decodeURIComponent(value); } catch (e) { @@ -241,7 +240,6 @@ function tryDecodeURIComponent(value: string) { /** * Parses an escaped url query string into key-value pairs. Logic taken from * https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1382 - * @returns {Object.} */ function parseKeyValue(keyValue: string): {[k: string]: unknown} { const obj: {[k: string]: unknown} = {};