Skip to content

Commit ab7e7bd

Browse files
committed
types
1 parent 18c0296 commit ab7e7bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/util/url.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function getProtocol(path: string | undefined) {
100100
* @param path
101101
* @returns
102102
*/
103-
export function getExtension(path: any) {
103+
export function getExtension(path: string) {
104104
const lastDot = path.lastIndexOf(".");
105105
if (lastDot >= 0) {
106106
return stripQuery(path.substring(lastDot).toLowerCase());
@@ -114,7 +114,7 @@ export function getExtension(path: any) {
114114
* @param path
115115
* @returns
116116
*/
117-
export function stripQuery(path: any) {
117+
export function stripQuery(path: string) {
118118
const queryIndex = path.indexOf("?");
119119
if (queryIndex >= 0) {
120120
path = path.substring(0, queryIndex);
@@ -146,7 +146,7 @@ export function getHash(path: undefined | string) {
146146
* @param path
147147
* @returns
148148
*/
149-
export function stripHash(path?: string | undefined) {
149+
export function stripHash(path: string) {
150150
if (!path) {
151151
return "";
152152
}

0 commit comments

Comments
 (0)