Type import

This commit is contained in:
Kilian Hofmann 2025-09-05 19:09:01 +02:00
parent 95aef94c71
commit 1c7caf986a

View File

@ -1,6 +1,27 @@
import { SimBrief } from '../types/general';
export const ImportFlightPlanKH = (plan: any, maxZFW: number, maxTOW: number, maxFuel: number, isImperial: boolean) => {
type Plan = {
params: {
units: 'kgs' | 'lbs';
};
weights: {
est_zfw: number;
est_ramp: number;
pax_count_actual: number;
freight_added: number;
};
fuel: {
plan_ramp: number;
};
};
export const ImportFlightPlanKH = (
plan: Plan,
maxZFW: number,
maxTOW: number,
maxFuel: number,
isImperial: boolean
) => {
if (!plan) return { type: 'error', message: 'Empty plan' };
let convFactor = 1;