https://github.com/oldvis/gallery
Tip revision: 9798cde3778299d40523107bc9e33d20d60f2c98 authored by shellywhen on 24 January 2024, 07:59:25 UTC
Update README.md
Update README.md
Tip revision: 9798cde
author.ts
import rawAuthors from '~/assets/authors.json'
interface TimePoint {
year: number
month?: number
day?: number
}
interface RawAuthor {
name: string
birth: TimePoint | [TimePoint, TimePoint] | null
death: TimePoint | [TimePoint, TimePoint] | null
occupations: string[]
roles: string[]
input: string
}
export interface Author {
name: string
}
export const authors: Author[] = (rawAuthors as RawAuthor[]).map((d) => ({
name: d.name,
}))
