+6
-2
| type Child = string | Node | null | undefined | readonly Child[] | ||
| export default function crelt(elt: string | HTMLElement, attrs: {[attr: string]: any}, ...children: Child[]): HTMLElement | ||
| export default function crelt(elt: string | HTMLElement, ...children: Child[]): HTMLElement | ||
| type EltType<N extends string> = N extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[N] : HTMLElement | ||
| export default function crelt<N extends string>(elt: N, attrs: {[attr: string]: any}, ...children: Child[]): EltType<N> | ||
| export default function crelt<N extends string>(elt: N, ...children: Child[]): EltType<N> | ||
| export default function crelt(elt: HTMLElement, attrs: {[attr: string]: any}, ...children: Child[]): HTMLElement | ||
| export default function crelt(elt: HTMLElement, ...children: Child[]): HTMLElement |
+6
-2
| type Child = string | Node | null | undefined | readonly Child[] | ||
| export default function crelt(elt: string | HTMLElement, attrs: {[attr: string]: any}, ...children: Child[]): HTMLElement | ||
| export default function crelt(elt: string | HTMLElement, ...children: Child[]): HTMLElement | ||
| type EltType<N extends string> = N extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[N] : HTMLElement | ||
| export default function crelt<N extends string>(elt: N, attrs: {[attr: string]: any}, ...children: Child[]): EltType<N> | ||
| export default function crelt<N extends string>(elt: N, ...children: Child[]): EltType<N> | ||
| export default function crelt(elt: HTMLElement, attrs: {[attr: string]: any}, ...children: Child[]): HTMLElement | ||
| export default function crelt(elt: HTMLElement, ...children: Child[]): HTMLElement |
+4
-4
| { | ||
| "name": "crelt", | ||
| "version": "1.0.6", | ||
| "version": "1.0.7", | ||
| "description": "Tiny DOM-element-creation utility", | ||
@@ -18,3 +18,3 @@ "main": "dist/index.cjs", | ||
| "type": "git", | ||
| "url": "git+https://github.com/marijnh/crelt.git" | ||
| "url": "git+https://code.haverbeke.berlin/marijn/crelt.git" | ||
| }, | ||
@@ -29,5 +29,5 @@ "keywords": [ | ||
| "bugs": { | ||
| "url": "https://github.com/marijnh/crelt/issues" | ||
| "url": "https://code.haverbeke.berlin/marijn/crelt/issues" | ||
| }, | ||
| "homepage": "https://github.com/marijnh/crelt#readme", | ||
| "homepage": "https://code.haverbeke.berlin/marijn/crelt", | ||
| "devDependencies": { | ||
@@ -34,0 +34,0 @@ "rollup": "^2.0.5", |
6020
11.75%73
4.29%