style(common): remove unnecessary jsdoc type (#34369)

These types cause the compiler to give warnings,
which add noise to compilation logs.

PR Close #34369
This commit is contained in:
Pete Bacon Darwin 2019-12-12 10:09:00 +00:00 committed by Kara Erickson
parent 05c1398b4d
commit c13a4b8c03
1 changed files with 2 additions and 4 deletions

View File

@ -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.<string,boolean|Array>}
*/
function parseKeyValue(keyValue: string): {[k: string]: unknown} {
const obj: {[k: string]: unknown} = {};