Skip to content

Commit

Permalink
Merge pull request #599 from katyo/master
Browse files Browse the repository at this point in the history
Fixed type of render function
  • Loading branch information
robertknight authored Apr 2, 2017
2 parents 37e5a6f + 572d4a8 commit 2b9d81f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preact.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ declare namespace preact {

function h<PropsType>(node:ComponentConstructor<PropsType, any> | FunctionalComponent<PropsType>, params:PropsType, ...children:(JSX.Element|JSX.Element[]|string)[]):JSX.Element;
function h(node:string, params:JSX.HTMLAttributes&JSX.SVGAttributes&{[propName: string]: any}, ...children:(JSX.Element|JSX.Element[]|string)[]):JSX.Element;
function render(node:JSX.Element, parent:Element, mergeWith?:Element):Element;
function render(node:JSX.Element, parent:Element|Document, mergeWith?:Element):Element;
function rerender():void;
function cloneElement(element:JSX.Element, props:any):JSX.Element;

Expand Down

0 comments on commit 2b9d81f

Please sign in to comment.