refactored change type

This commit is contained in:
DerPenz
2023-05-06 19:22:40 +02:00
parent 9457dce115
commit 33830afe92
11 changed files with 150 additions and 147 deletions

View File

@@ -96,22 +96,13 @@ export interface PersonDetails {
homepage: string;
}
export interface PersonChange {
id: string;
action: string;
time: string;
iso_639_1: string;
iso_3166_1: string;
value: string | { profile: { file_path: string } };
original_value: string | { profile: { file_path: string } };
}
export interface PersonChanges {
changes: {
key: string;
items: PersonChange[];
}[];
}
export type PersonChangeValue =
| string
| {
profile: {
file_path: string;
};
};
export interface PopularPersons {
page: number;