diff --git a/src/preact.d.ts b/src/preact.d.ts index 1cfaedb590..a4ce14ece2 100644 --- a/src/preact.d.ts +++ b/src/preact.d.ts @@ -101,16 +101,16 @@ declare namespace preact { abstract render(props?: RenderableProps

, state?: Readonly, context?: any): ComponentChild; } - function h

( - node: ComponentFactory

, - params: Attributes & P | null, - ...children: ComponentChildren[] - ): VNode; function h( node: string, params: JSX.HTMLAttributes & JSX.SVGAttributes & Record | null, ...children: ComponentChildren[] ): VNode; + function h

( + node: ComponentFactory

, + params: Attributes & P | null, + ...children: ComponentChildren[] + ): VNode; function render(node: ComponentChild, parent: Element | Document | ShadowRoot | DocumentFragment, mergeWith?: Element): Element; function rerender(): void;