Migrate manga only after "copy" succeeded

In case the manga should not only be copied but actually migrated, the "migration" actions should only be executed in case the copy actions have succeeded.
This commit is contained in:
schroda
2024-08-05 14:30:26 +02:00
parent 17c5780203
commit a29c113b5f
2 changed files with 106 additions and 50 deletions

4
src/UtilTypes.d.ts vendored
View File

@@ -25,3 +25,7 @@ type OptionalProperty<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
type PropertiesNever<T> = { [key in keyof T]?: never };
type OmitFirst<T extends any[]> = T extends [any, ...infer R] ? R : never;
type TupleUnion<U extends string, R extends any[] = []> = {
[S in U]: Exclude<U, S> extends never ? [...R, S] : TupleUnion<Exclude<U, S>, [...R, S]>;
}[U];