(path?: string)
| 24 | }; |
| 25 | |
| 26 | export const addLeadingSlash = (path?: string): string => |
| 27 | path && typeof path === 'string' |
| 28 | ? path.charAt(0) !== '/' && path.substring(0, 2) !== '{/' |
| 29 | ? '/' + path |
| 30 | : path |
| 31 | : ''; |
| 32 | |
| 33 | export const normalizePath = (path?: string): string => |
| 34 | path |
no outgoing calls
no test coverage detected