src/elements/NestableElement.ts
Function constructor
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(tag: string, tier1?: string | Renderable | Attributes, tier2?: string | Renderable | Attributes, ...children: (Renderable|string)[]) {
super(tag);
if (isString(tier1) || isRenderable(tier1)) {
if (isString(tier1) && Element.isIdentifierString(tier1)) {