diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-10-05 17:38:02 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-10-05 17:38:02 +0200 |
commit | 0c8a6e21f0324e25d1ec59bcdddf8c5c49b01421 (patch) | |
tree | ccfa63b417a9570c5af2bdbeaa416be5ffa2d312 /lib/decl | |
parent | 7fb527b0009a29605c32e663ab9e6a812a8cc5a8 (diff) |
prettier syntax (JSX) for rendering
Diffstat (limited to 'lib/decl')
-rw-r--r-- | lib/decl/preact.d.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/decl/preact.d.ts b/lib/decl/preact.d.ts index fb8a0b764..dfa094e0e 100644 --- a/lib/decl/preact.d.ts +++ b/lib/decl/preact.d.ts @@ -56,12 +56,16 @@ declare namespace preact { function h<PropsType>(node:ComponentConstructor<PropsType, any>, params:PropsType, ...children:(JSX.Element|string)[]):JSX.Element; function h(node:string, params:JSX.HTMLAttributes|JSX.SVGAttributes, ...children:(JSX.Element|string)[]):JSX.Element; + function createElement<PropsType>(node:ComponentConstructor<PropsType, any>, params:PropsType, ...children:(JSX.Element|string)[]):JSX.Element; + function createElement(node:string, params:JSX.HTMLAttributes|JSX.SVGAttributes, ...children:(JSX.Element|string)[]):JSX.Element; + function render(node:JSX.Element, parent:Element, merge?:boolean):Element; function rerender():void; function cloneElement(element:JSX.Element, props:any):JSX.Element; + var options:{ syncComponentUpdates?:boolean; debounceRendering?:(render:() => void) => void; |