chore: improve SlotMixin feedback
This commit is contained in:
parent
36910e5d70
commit
9d31c179b1
1 changed files with 2 additions and 1 deletions
|
|
@ -196,7 +196,8 @@ const SlotMixinImplementation = superclass =>
|
|||
this.__slotsThatNeedRerender.add(slotName);
|
||||
} else {
|
||||
throw new Error(
|
||||
'Please provide a function inside "get slots()" returning TemplateResult | Node | {template:TemplateResult, afterRender?:function} | undefined',
|
||||
`Slot "${slotName}" configured inside "get slots()" (in prototype) of ${this.constructor.name} may return these types: TemplateResult | Node | {template:TemplateResult, afterRender?:function} | undefined.
|
||||
You provided: ${slotFunctionResult}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue