Skip to content

Commit

Permalink
Fix Flow typing for Flow v0.82
Browse files Browse the repository at this point in the history
https://github.com/facebook/flow/releases/tag/v0.82.0

“Removed the ability to use functions as type annotations.”
  • Loading branch information
ngyikp committed Oct 4, 2018
1 parent 8b2f56a commit d445fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preact.js.flow
Expand Up @@ -2,7 +2,7 @@

import { createElement, cloneElement, Component, type Node } from 'react';

declare var h: createElement;
declare var h: typeof createElement;

declare function render(vnode: Node, parent: Element, toReplace?: Element): Element;

Expand Down

0 comments on commit d445fa4

Please sign in to comment.