-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
47 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>]; |