Skip to content

Commit cb78b1e

Browse files
committed
generalize types for SVG
1 parent 42a0291 commit cb78b1e

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dom-expressions",
33
"description": "A Fine-Grained Runtime for Performant DOM Rendering",
4-
"version": "0.12.1",
4+
"version": "0.12.2",
55
"author": "Ryan Carniato",
66
"license": "MIT",
77
"repository": {

runtime.d.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@ declare module "dom-expressions-runtime" {
1414
): any;
1515
export function delegateEvents(eventNames: string[]): void;
1616
export function clearDelegatedEvents(): void;
17-
export function spread(
18-
node: HTMLElement,
19-
accessor: any,
20-
isSVG: Boolean
21-
): void;
17+
export function spread(node: Element, accessor: any, isSVG: Boolean): void;
2218
export function classList(
23-
node: HTMLElement,
19+
node: Element,
2420
value: { [k: string]: boolean }
2521
): void;
2622
export function currentContext(): any;

template/runtime.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ export function createComponent(
1313
): any;
1414
export function delegateEvents(eventNames: string[]): void;
1515
export function clearDelegatedEvents(): void;
16-
export function spread(node: HTMLElement, accessor: any, isSVG: Boolean): void;
17-
export function classList(
18-
node: HTMLElement,
19-
value: { [k: string]: boolean }
20-
): void;
16+
export function spread(node: Element, accessor: any, isSVG: Boolean): void;
17+
export function classList(node: Element, value: { [k: string]: boolean }): void;
2118
export function currentContext(): any;
2219
export function isSSR(): boolean;
2320
export function startSSR(): void;

0 commit comments

Comments
 (0)