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:
@@ -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
|
||||
);
|
||||
|
Reference in New Issue
Block a user