Files
NativeScript/nativescript-core/ui/builder/module-name-sanitizer.d.ts
Nathan Walker 8100cf7089 chore: cleanup
2020-07-11 11:06:36 -07:00

7 lines
255 B
TypeScript

/**
* Helps sanitize a module name if it is prefixed with '~/', '~' or '/'
* @param moduleName the name
* @param removeExtension whether to remove extension
*/
export function sanitizeModuleName(moduleName: string, removeExtension?: boolean): string;