portfolio/types/index.ts
Ryan Freeman f2eecf06d3
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 3m13s
Extract providers for comment component
2025-04-08 22:14:59 +01:00

39 lines
628 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
name: string
image: string
}
replies?: Comment[]
}