feat: hydration

This commit is contained in:
Ax333l
2022-10-21 20:31:18 +02:00
parent a1b893b346
commit 01bc0f2063
8 changed files with 79 additions and 61 deletions

34
src/lib/types.ts Normal file
View File

@@ -0,0 +1,34 @@
export interface Contributor {
login: string;
avatar_url: string;
html_url: string;
}
export interface Repository {
name: string;
contributors: Contributor[];
}
export interface Patch {
name: string;
description: string;
version: string;
excluded: boolean;
deprecated: boolean;
dependencies: string[];
options: PatchOption[];
compatiblePackages: CompatiblePackage[];
}
export interface CompatiblePackage {
name: string;
versions: string[];
}
export interface PatchOption {
key: string;
title: string;
description: string;
required: boolean;
choices: string[];
}