Use optional property syntax in TCGPlayer interface

This commit is contained in:
Tee
2021-03-01 22:01:47 -05:00
parent 0d00d4f984
commit 4238438adb

View File

@ -2,16 +2,16 @@ export interface TCGPlayer {
url: string;
updatedAt: string;
prices: {
normal: Price | undefined;
holofoil: Price | undefined;
reverseHolofoil: Price | undefined;
normal?: Price;
holofoil?: Price;
reverseHolofoil?: Price;
}
}
export interface Price {
low: number | null
mid: number | null
high: number | null
market: number | null
directLow: number | null
low: number | null;
mid: number | null;
high: number | null;
market: number | null;
directLow: number | null;
}