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:
parent
05c1398b4d
commit
c13a4b8c03
@ -225,10 +225,9 @@ function _stripIndexHtml(url: string): string {
|
|||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param str value potential URI component to check.
|
* @param str value potential URI component to check.
|
||||||
* @returns {boolean} True if `value` can be decoded
|
* @returns the decoded URI if it can be decoded or else `undefined`.
|
||||||
* with the decodeURIComponent function.
|
|
||||||
*/
|
*/
|
||||||
function tryDecodeURIComponent(value: string) {
|
function tryDecodeURIComponent(value: string): string|undefined {
|
||||||
try {
|
try {
|
||||||
return decodeURIComponent(value);
|
return decodeURIComponent(value);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@ -241,7 +240,6 @@ function tryDecodeURIComponent(value: string) {
|
|||||||
/**
|
/**
|
||||||
* Parses an escaped url query string into key-value pairs. Logic taken from
|
* 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
|
* https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1382
|
||||||
* @returns {Object.<string,boolean|Array>}
|
|
||||||
*/
|
*/
|
||||||
function parseKeyValue(keyValue: string): {[k: string]: unknown} {
|
function parseKeyValue(keyValue: string): {[k: string]: unknown} {
|
||||||
const obj: {[k: string]: unknown} = {};
|
const obj: {[k: string]: unknown} = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user