1
0
mirror of https://github.com/uetchy/namae.git synced 2025-08-20 09:58:13 +09:00

fix: tsc errors

This commit is contained in:
2021-02-25 16:48:45 +09:00
parent 42c38028f7
commit 7bd485c6d5
6 changed files with 3582 additions and 3297 deletions

View File

@@ -2,7 +2,7 @@ import React from 'react';
import styled from 'styled-components';
import useSWR from 'swr';
export interface Contributors {
export interface IContributors {
projectName: string;
projectOwner: string;
repoType: string;
@@ -27,7 +27,7 @@ export interface Contributor {
const fetcher = (url: string) => fetch(url).then((r) => r.json());
const Contributors: React.FC = () => {
const { data } = useSWR<Contributors>(
const { data } = useSWR<IContributors>(
'https://raw.githubusercontent.com/uetchy/namae/master/.all-contributorsrc',
fetcher
);