Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private static get ansiToHtmlClass(): ClassType {
if (!CellOutput.ansiToHtmlClass_ctor) {
// ansiToHtml is different between the tests running and webpack. figure out which one
// tslint:disable-next-line: no-any
if (ansiToHtml instanceof Function) {
CellOutput.ansiToHtmlClass_ctor = ansiToHtml;
} else {
CellOutput.ansiToHtmlClass_ctor = ansiToHtml.default;
}
}
return CellOutput.ansiToHtmlClass_ctor!;
}