mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
Pobieranie danych z API zamiast lokalnie
This commit is contained in:
+27
-3
@@ -28,10 +28,33 @@ export interface IStore {
|
||||
isRealStockListCardOpen: boolean;
|
||||
|
||||
stockSectionMode: 'stock-list' | 'stock-generator';
|
||||
stockData?: IStockData;
|
||||
}
|
||||
|
||||
export interface IVehicleData {
|
||||
[key: string]: (string | boolean)[][];
|
||||
export type TStockInfoKey = 'loco-e' | 'loco-s' | 'loco-ezt' | 'loco-szt' | 'car-passenger' | 'car-cargo';
|
||||
|
||||
export interface IStockProps {
|
||||
type: string;
|
||||
length: number;
|
||||
mass: number;
|
||||
cargo: string;
|
||||
}
|
||||
|
||||
export interface IStockData {
|
||||
generator: {
|
||||
passenger: [];
|
||||
cargo: {
|
||||
[key: string]: string[];
|
||||
};
|
||||
};
|
||||
|
||||
info: {
|
||||
[key in TStockInfoKey]: any[];
|
||||
};
|
||||
|
||||
props: IStockProps[];
|
||||
|
||||
usage: { [key: string]: string };
|
||||
}
|
||||
|
||||
export interface ILocomotive {
|
||||
@@ -83,4 +106,5 @@ export interface IStock {
|
||||
|
||||
export interface IReadyStockList {
|
||||
[key: string]: { stockString: string; type: string; number: string; name: string };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user