fix: nemesis fp from client could be of type number

This commit is contained in:
Sainan 2025-04-26 03:15:58 +02:00
parent c7c416c100
commit 2058207b6a
2 changed files with 6 additions and 3 deletions

View File

@ -169,6 +169,7 @@ const convertPendingRecipe = (client: IPendingRecipeClient): IPendingRecipeDatab
const convertNemesis = (client: INemesisClient): INemesisDatabase => {
return {
...client,
fp: BigInt(client.fp),
d: convertDate(client.d)
};
};

View File

@ -845,7 +845,7 @@ export interface IMission extends IMissionDatabase {
}
export interface INemesisBaseClient {
fp: bigint;
fp: bigint | number;
manifest: string;
KillingSuit: string;
killingDamageType: number;
@ -863,7 +863,8 @@ export interface INemesisBaseClient {
Weakened: boolean;
}
export interface INemesisBaseDatabase extends Omit<INemesisBaseClient, "d"> {
export interface INemesisBaseDatabase extends Omit<INemesisBaseClient, "fp" | "d"> {
fp: bigint;
d: Date;
}
@ -877,7 +878,8 @@ export interface INemesisClient extends INemesisBaseClient {
LastEnc: number;
}
export interface INemesisDatabase extends Omit<INemesisClient, "d"> {
export interface INemesisDatabase extends Omit<INemesisClient, "fp" | "d"> {
fp: bigint;
d: Date;
}