chore(deps): update flow-bin

This commit is contained in:
alxshelepenok 2019-07-19 23:38:20 +03:00
parent 49c10e7a57
commit 98ffd67d23
4 changed files with 14 additions and 9 deletions

View File

@ -103,7 +103,7 @@
"eslint-plugin-react": "7.14.2", "eslint-plugin-react": "7.14.2",
"eslint-watch": "6.0.0", "eslint-watch": "6.0.0",
"flow-typed": "^2.6.0", "flow-typed": "^2.6.0",
"flow-bin": "^0.98.1", "flow-bin": "^0.103.0",
"gh-pages": "2.0.1", "gh-pages": "2.0.1",
"identity-obj-proxy": "3.0.0", "identity-obj-proxy": "3.0.0",
"jest": "24.8.0", "jest": "24.8.0",

View File

@ -1,3 +1,4 @@
// @flow
import React from 'react'; import React from 'react';
import { graphql } from 'gatsby'; import { graphql } from 'gatsby';
import Layout from '../components/Layout'; import Layout from '../components/Layout';
@ -6,7 +7,9 @@ import { useSiteMetadata } from '../hooks';
import type { MarkdownRemark } from '../types'; import type { MarkdownRemark } from '../types';
type Props = { type Props = {
data: MarkdownRemark data: {
markdownRemark: MarkdownRemark
}
}; };
const PostTemplate = ({ data }: Props) => { const PostTemplate = ({ data }: Props) => {
@ -21,7 +24,6 @@ const PostTemplate = ({ data }: Props) => {
); );
}; };
export const query = graphql` export const query = graphql`
query PostBySlug($slug: String!) { query PostBySlug($slug: String!) {
markdownRemark(fields: { slug: { eq: $slug } }) { markdownRemark(fields: { slug: { eq: $slug } }) {
@ -41,5 +43,4 @@ export const query = graphql`
} }
`; `;
export default PostTemplate; export default PostTemplate;

View File

@ -1,9 +1,13 @@
// @flow // @flow
import type { Node as ReactNode } from 'react'; import type { Node as ReactNode } from 'react';
export type RenderCallback = (data: any) => ReactNode; export type RenderCallback = {
render: (data: any) => ReactNode;
}
export type Entry = (string[]) => string; export type Entry = {
getIn: (string[]) => string;
}
export type WidgetFor = (string) => string; export type WidgetFor = (string) => string;

View File

@ -5326,9 +5326,9 @@ flatted@^2.0.0:
version "2.0.1" version "2.0.1"
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz#69e57caa8f0eacbc281d2e2cb458d46fdb449e08" resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz#69e57caa8f0eacbc281d2e2cb458d46fdb449e08"
flow-bin@^0.98.1: flow-bin@^0.103.0:
version "0.98.1" version "0.103.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.98.1.tgz#a8d781621c91703df69928acc83c9777e2fcbb49" resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.103.0.tgz#7aec510d85e1c1b0f2b912bb988337d70035cb0f"
flow-typed@^2.6.0: flow-typed@^2.6.0:
version "2.6.0" version "2.6.0"