UNPKG

255 BTypeScriptView Raw
1/**
2 * Helps sanitize a module name if it is prefixed with '~/', '~' or '/'
3 * @param moduleName the name
4 * @param removeExtension whether to remove extension
5 */
6export function sanitizeModuleName(moduleName: string, removeExtension?: boolean): string;