Add InternalError

This commit is contained in:
zkldi
2021-04-09 00:01:17 +01:00
parent 1e3018ea72
commit 55b7a38eb6
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -710,5 +710,11 @@ export interface ImportProcessInfoScoreImported<G extends Game = Game, P extends
score: ScoreDocument<G, P>;
};
}
export interface ImportProcessInfoInternalError {
success: false;
type: "InternalError";
message: string | null;
content: Record<string, never>;
}
export declare type ImportProcessingInfo<G extends Game = Game, P extends Playtypes[G] = Playtypes[G]> = ImportProcessInfoKTDataNotFound | ImportProcessInfoScoreExists | ImportProcessInfoScoreImported<G, P> | ImportProcessInfoInvalidDatapoint;
export {};
+7
View File
@@ -959,6 +959,13 @@ export interface ImportProcessInfoScoreImported<
};
}
export interface ImportProcessInfoInternalError {
success: false;
type: "InternalError";
message: string | null;
content: Record<string, never>;
}
export type ImportProcessingInfo<G extends Game = Game, P extends Playtypes[G] = Playtypes[G]> =
| ImportProcessInfoKTDataNotFound
| ImportProcessInfoScoreExists