portfolio/types/index.ts

40 lines
625 B
TypeScript

import {ReactNode} from 'react'
export type Article = {
slug: string
title: string
date: string
description: string
}
export type Props = {
className?: string
children?: ReactNode
}
export type Repo = {
name: string
description: string
url: string
stargazerCount: number
forkCount: number
primaryLanguage: {
name: string
color: string
}
}
export type CardProps = {
title: string
metric: number | string
group: string
href: string
}
export type CardGroupProps = [
{
groupName: string,
groupItems: CardProps[]
}
]