Skip to content

Commit

Permalink
generalize types for SVG
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Oct 5, 2019
1 parent 42a0291 commit cb78b1e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion 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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dom-expressions",
"description": "A Fine-Grained Runtime for Performant DOM Rendering",
"version": "0.12.1",
"version": "0.12.2",
"author": "Ryan Carniato",
"license": "MIT",
"repository": {
Expand Down
8 changes: 2 additions & 6 deletions runtime.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@ declare module "dom-expressions-runtime" {
): any;
export function delegateEvents(eventNames: string[]): void;
export function clearDelegatedEvents(): void;
export function spread(
node: HTMLElement,
accessor: any,
isSVG: Boolean
): void;
export function spread(node: Element, accessor: any, isSVG: Boolean): void;
export function classList(
node: HTMLElement,
node: Element,
value: { [k: string]: boolean }
): void;
export function currentContext(): any;
Expand Down
7 changes: 2 additions & 5 deletions template/runtime.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ export function createComponent(
): any;
export function delegateEvents(eventNames: string[]): void;
export function clearDelegatedEvents(): void;
export function spread(node: HTMLElement, accessor: any, isSVG: Boolean): void;
export function classList(
node: HTMLElement,
value: { [k: string]: boolean }
): void;
export function spread(node: Element, accessor: any, isSVG: Boolean): void;
export function classList(node: Element, value: { [k: string]: boolean }): void;
export function currentContext(): any;
export function isSSR(): boolean;
export function startSSR(): void;
Expand Down

0 comments on commit cb78b1e

Please sign in to comment.