Skip to content

Commit b98e8bf

Browse files
authored
Update index.d.ts
1 parent f9ca695 commit b98e8bf

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

src/integrations/preact/index.d.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
declare module "htm/preact" {
2-
import { h, Component, VNode } from 'preact';
3-
4-
function render(tree: Component, parent: HTMLElement): void;
5-
6-
const html: (strings: string[], values: any[]) => VNode;
7-
8-
export { h, html, render, Component };
9-
}
1+
import { h, Component, VNode } from 'preact';
2+
declare function render(tree: Component, parent: HTMLElement): void;
3+
declare const html: (strings: TemplateStringsArray, ...values: any[]) => VNode;
4+
export { h, html, render, Component };

0 commit comments

Comments
 (0)