portfolio/types/index.ts
Ryan Freeman d773342653
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 3m8s
Add gh profile url to comments
2025-04-27 21:11:44 +01:00

40 lines
653 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 Comment = {
id: number
content: string
created_at: string
parent_id: number | null
user: {
id: number
username: string
name: string
image: string
}
replies?: Comment[]
}