Skip to content

Commit

Permalink
fix: ChildNodes typing problem
Browse files Browse the repository at this point in the history
  • Loading branch information
dknight committed Dec 22, 2023
1 parent 0e025cf commit b75463f
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/xz-notify.js
Expand Up @@ -8,7 +8,7 @@
*
* @author Dmitri Smirnov <https://www.whoop.ee/>
* @license MIT 2023
* @version 3.0.3
* @version 3.0.5
* @extends HTMLElement
*
* @property {number} [expire=10000] Time in milliseconds. How long the
Expand Down
2 changes: 1 addition & 1 deletion dist/xz-notify.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/xz-notify.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/xz-notify.mjs
Expand Up @@ -8,7 +8,7 @@
*
* @author Dmitri Smirnov <https://www.whoop.ee/>
* @license MIT 2023
* @version 3.0.3
* @version 3.0.5
* @extends HTMLElement
*
* @property {number} [expire=10000] Time in milliseconds. How long the
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Expand Up @@ -367,7 +367,7 @@ class XZNotify extends HTMLElement implements XZNotifyProps {
private render() {
this.root.append(this.styleElem);
this.heading && this.root.appendChild(this.buildHeading());
this.root.append(...this.childNodes);
this.root.append(...(this.childNodes as unknown as ChildNode[]));
this.setAttribute('role', 'alert');
}

Expand Down
2 changes: 1 addition & 1 deletion jsx.d.ts
@@ -1,4 +1,4 @@
import XZNotify from './src/xz-notify';
import XZNotify from './index';

declare global {
namespace JSX {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "xz-notify",
"version": "3.0.4",
"version": "3.0.5",
"description": "Notifications based on web components.",
"main": "index.ts",
"scripts": {
Expand Down

0 comments on commit b75463f

Please sign in to comment.