Add types for react and tsconfig

This commit is contained in:
supergrecko
2019-07-27 01:09:07 +02:00
parent 69fc1a3dbd
commit d2f9ffc2a3
6 changed files with 118 additions and 16 deletions
+4 -3
View File
@@ -1,8 +1,9 @@
import * as React from "react";
import React from "react";
import { graphql } from "gatsby";
import Layout from "../components/Layout";
const LanguagePost = ({ data }) => {
// @todo maybe find alternative type for data
const LanguagePost = ({ data }: any) => {
const { html } = data.file.post;
console.log(data)
return (
@@ -26,4 +27,4 @@ export const query = graphql`
}
}
}
`
`