Integrate Flow typing

This commit is contained in:
Victor Zhou
2019-04-08 11:53:56 -04:00
parent 635bf9ce8e
commit e62c37d91d
9 changed files with 91 additions and 22 deletions

View File

@@ -1,3 +1,4 @@
// @flow
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
@@ -6,7 +7,12 @@ import Feed from '../components/Feed';
import Page from '../components/Page';
import Pagination from '../components/Pagination';
const IndexTemplate = ({ data, pageContext }) => {
type Props = {
+data: Object,
+pageContext: Object,
};
const IndexTemplate = ({ data, pageContext }: Props) => {
const {
title: siteTitle,
subtitle: siteSubtitle