Skip to content

Commit

Permalink
Upgrade types according api (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound authored Jul 11, 2018
1 parent 752a9ea commit d48ca47
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-react": "^7.8.2",
"flow-bin": "^0.75.0",
"flow-bin": "^0.76.0",
"husky": "^0.14.3",
"jest": "^22.4.3",
"lint-staged": "^7.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as React from 'react';

type Attributes = { [string]: mixed };

declare export var HeadCollector: React.ComponentType<{
declare export var HeadProvider: React.ComponentType<{
headTags: Array<React.Element<>>,
children: React.Node,
}>;
Expand Down
6 changes: 3 additions & 3 deletions src/test_flow.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// @flow

import * as React from 'react';
import { HeadCollector, HeadTag, Title, Style, Meta, Link } from '../';
import { HeadProvider, HeadTag, Title, Style, Meta, Link } from '../';

[
<HeadCollector headTags={[]}>
<HeadProvider headTags={[]}>
<div />
</HeadCollector>,
</HeadProvider>,
// $FlowFixMe
<HeadCollector headTags={[]} />,
// $FlowFixMe
Expand Down

0 comments on commit d48ca47

Please sign in to comment.