Skip to content

Commit

Permalink
Update mount types
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Oct 5, 2019
1 parent e85fef3 commit 42a0291
Show file tree
Hide file tree
Showing 4 changed files with 47 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.0",
"version": "0.12.1",
"author": "Ryan Carniato",
"license": "MIT",
"repository": {
Expand Down
31 changes: 25 additions & 6 deletions runtime.d.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,35 @@
declare module "dom-expressions-runtime" {
export function template(html: string): HTMLTemplateElement;
export function wrap<T>(fn: (prev?: T) => T): any;
export function insert(parent: Node, accessor: any, init?: any, marker?: Node): any;
export function createComponent(Comp: (props: any) => any, props: any, dynamicKeys?: string[]): any;
export function insert(
parent: Element | Document | ShadowRoot | DocumentFragment,
accessor: any,
init?: any,
marker?: Node
): any;
export function createComponent(
Comp: (props: any) => any,
props: any,
dynamicKeys?: string[]
): 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: HTMLElement,
accessor: any,
isSVG: Boolean
): void;
export function classList(
node: HTMLElement,
value: { [k: string]: boolean }
): void;
export function currentContext(): any;
export function isSSR(): boolean;
export function startSSR(): void;
export function hydration(fn: () => unknown, node: HTMLElement): void;
export function hydration(
fn: () => unknown,
node: Element | Document | ShadowRoot | DocumentFragment
): void;
export function getNextElement(template: HTMLTemplateElement): Node;
export function getNextMarker(start: Node): [Node, Array<Node>];
}
}
25 changes: 20 additions & 5 deletions template/runtime.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
export function template(html: string): HTMLTemplateElement;
export function wrap<T>(fn: (prev?: T) => T): any;
export function insert(parent: Node, accessor: any, init?: any, marker?: Node): any;
export function createComponent(Comp: (props: any) => any, props: any, dynamicKeys?: string[]): any;
export function insert(
parent: Element | Document | ShadowRoot | DocumentFragment,
accessor: any,
init?: any,
marker?: Node
): any;
export function createComponent(
Comp: (props: any) => any,
props: any,
dynamicKeys?: string[]
): 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 classList(
node: HTMLElement,
value: { [k: string]: boolean }
): void;
export function currentContext(): any;
export function isSSR(): boolean;
export function startSSR(): void;
export function hydration(fn: () => unknown, node: HTMLElement): void;
export function hydration(
fn: () => unknown,
node: Element | Document | ShadowRoot | DocumentFragment
): void;
export function getNextElement(template: HTMLTemplateElement): Node;
export function getNextMarker(start: Node): [Node, Array<Node>];
export function getNextMarker(start: Node): [Node, Array<Node>];

0 comments on commit 42a0291

Please sign in to comment.