Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const parts = headerName.split('-').map((partialName) => {
return toPascalCase(partialName);
});
public constructor(hintData: inquirer.Answers, parentName?: string) {
this.name = hintData.name;
this.normalizedName = normalizeStringByDelimiter(hintData.name, '-');
this.className = `${parentName ? toPascalCase(parentName) : ''}${toPascalCase(this.normalizedName)}Hint`;
this.category = hintData.category || Category.other;
this.description = escapeSafeString(hintData.description);
this.elementType = hintData.elementType;
this.events = getEventsByUseCase(hintData.useCase);
this.useCase[hintData.useCase] = true;
this.scope = hintData.scope;
this.parentName = parentName || '';
}
}