Skip to content

Commit

Permalink
chore(deps): update flow-bin
Browse files Browse the repository at this point in the history
  • Loading branch information
alxshelepenok committed Jul 19, 2019
1 parent 49c10e7 commit 98ffd67
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"eslint-plugin-react": "7.14.2",
"eslint-watch": "6.0.0",
"flow-typed": "^2.6.0",
"flow-bin": "^0.98.1",
"flow-bin": "^0.103.0",
"gh-pages": "2.0.1",
"identity-obj-proxy": "3.0.0",
"jest": "24.8.0",
Expand Down
7 changes: 4 additions & 3 deletions src/templates/post-template.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
Expand All @@ -6,7 +7,9 @@ import { useSiteMetadata } from '../hooks';
import type { MarkdownRemark } from '../types';

type Props = {
data: MarkdownRemark
data: {
markdownRemark: MarkdownRemark
}
};

const PostTemplate = ({ data }: Props) => {
Expand All @@ -21,7 +24,6 @@ const PostTemplate = ({ data }: Props) => {
);
};


export const query = graphql`
query PostBySlug($slug: String!) {
markdownRemark(fields: { slug: { eq: $slug } }) {
Expand All @@ -41,5 +43,4 @@ export const query = graphql`
}
`;


export default PostTemplate;
8 changes: 6 additions & 2 deletions src/types/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
// @flow
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;

Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5326,9 +5326,9 @@ flatted@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz#69e57caa8f0eacbc281d2e2cb458d46fdb449e08"

flow-bin@^0.98.1:
version "0.98.1"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.98.1.tgz#a8d781621c91703df69928acc83c9777e2fcbb49"
flow-bin@^0.103.0:
version "0.103.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.103.0.tgz#7aec510d85e1c1b0f2b912bb988337d70035cb0f"

flow-typed@^2.6.0:
version "2.6.0"
Expand Down

0 comments on commit 98ffd67

Please sign in to comment.