Skip to content

Commit f1950bf

Browse files
committed
Add types.
1 parent 046d18f commit f1950bf

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/integrations/preact.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}

0 commit comments

Comments
 (0)