SpaceNinjaServer/src/types/commonTypes.ts

27 lines
418 B
TypeScript
Raw Normal View History

export interface IOid {
2023-06-05 04:16:49 +08:00
$oid: string;
}
2023-09-11 13:20:07 +02:00
export interface IOidWithLegacySupport {
$oid?: string;
$id?: string;
}
2023-09-11 13:20:07 +02:00
export interface IMongoDate {
$date: {
$numberLong: string;
};
}
export interface ITypeCount {
ItemType: string;
ItemCount: number;
}
export interface IReward {
items: ITypeCount[];
credits: number;
}
export type IJunctionRewards = Record<string, IReward>;