mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-11 19:05:41 +00:00
40 lines
615 B
TypeScript
40 lines
615 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 Metric = {
|
|
title: string
|
|
value: number | string
|
|
group: string
|
|
href: string
|
|
}
|
|
|
|
export type MetricGroup = [
|
|
{
|
|
groupName: string,
|
|
groupItems: Metric[]
|
|
}
|
|
]
|