import type { NonEmptyArray } from "../../../global.ts"; import { Role } from "./Role.ts"; import { Status } from "./Status.ts"; import { Technology } from "./Technology.ts"; export interface Work { name: string; url: string; description: string; roles: NonEmptyArray; technologies: NonEmptyArray; startDate: Date; endDate?: Date; status?: Status; } export const getExternalLink: (work: Pick) => string = (work) => work.url.startsWith("https://") ? work.url : new URL(work.url, "https://git.pleshevski.ru").toString();