Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
readonly items = ['Search for Holy Grail', 'Run away!', 'Taunt a second time'];
readonly example = {
HTML: html,
Style: css,
TypeScript: typescript,
};
readonly anotherExample = {
HTML: html2,
Style: css2,
TypeScript: typescript2,
};
readonly content = new PolymorpheusComponent(TabComponent);
activeTabTab: 'HTML' | 'Style' | 'TypeScript' = 'HTML';
customTabs: ReadonlyArray | null = null;
get tabCode(): string {
const code: any = this.anotherExample[this.activeTabTab];
return typeof code === 'string' ? code : code.default;
}
getTabs(content: PolymorpheusContent): ReadonlyArray {
const customTabs = [
{
text: 'Alex Inkin',
content,