File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments