60e2149072
Tasks 16-20: Online Board Tests (Search/Filter, Tabs, Flight List, Details Modal, Time/Date) - Task 16: Search & Filter tests (37 tests) - departure/arrival cities, passenger count, cabin class - Task 17: Arrival/Departure Tabs tests (45 tests) - tab switching, flight display, sorting - Task 18: Flight List View tests (50 tests) - display, sorting, filtering, pagination, loading states - Task 19: Flight Details Modal tests (40 tests) - opening/closing, content display, actions - Task 20: Time & Date Filter tests (43 tests) - date selection, time ranges, calendar navigation Tasks 21-25: Flight Details Tests (Flight Info, Passengers, Seats, Services, Fares) - Task 21: Flight Info Display tests (40 tests) - basic info, airports, route visualization, timeline - Task 22: Passenger Info tests (50 tests) - passenger list, details, services, special requirements - Task 23: Seat Selection tests (50 tests) - seat map, selection, categories, recommendations - Task 24: Service Selection tests (25 tests) - baggage, meals, seats, summary - Task 25: Fare Display tests (55 tests) - fare breakdown, comparisons, discounts, refunds All tests follow AAA pattern and use data-testid selectors matching Angular version. Total: 245 tests across 10 feature suites.
49 lines
4.6 KiB
TypeScript
49 lines
4.6 KiB
TypeScript
import type { TarOptions, TarOptionsAsyncFile, TarOptionsAsyncNoFile, TarOptionsSyncFile, TarOptionsSyncNoFile, TarOptionsWithAliases, TarOptionsWithAliasesAsync, TarOptionsWithAliasesAsyncFile, TarOptionsWithAliasesAsyncNoFile, TarOptionsWithAliasesFile, TarOptionsWithAliasesNoFile, TarOptionsWithAliasesSync, TarOptionsWithAliasesSyncFile, TarOptionsWithAliasesSyncNoFile } from './options.js';
|
|
export type CB = (er?: Error) => unknown;
|
|
export type TarCommand<AsyncClass, SyncClass extends {
|
|
sync: true;
|
|
}> = {
|
|
(): AsyncClass;
|
|
(opt: TarOptionsWithAliasesAsyncNoFile): AsyncClass;
|
|
(entries: string[]): AsyncClass;
|
|
(opt: TarOptionsWithAliasesAsyncNoFile, entries: string[]): AsyncClass;
|
|
} & {
|
|
(opt: TarOptionsWithAliasesSyncNoFile): SyncClass;
|
|
(opt: TarOptionsWithAliasesSyncNoFile, entries: string[]): SyncClass;
|
|
} & {
|
|
(opt: TarOptionsWithAliasesAsyncFile): Promise<void>;
|
|
(opt: TarOptionsWithAliasesAsyncFile, entries: string[]): Promise<void>;
|
|
(opt: TarOptionsWithAliasesAsyncFile, cb: CB): Promise<void>;
|
|
(opt: TarOptionsWithAliasesAsyncFile, entries: string[], cb: CB): Promise<void>;
|
|
} & {
|
|
(opt: TarOptionsWithAliasesSyncFile): void;
|
|
(opt: TarOptionsWithAliasesSyncFile, entries: string[]): void;
|
|
} & {
|
|
(opt: TarOptionsWithAliasesSync): typeof opt extends (TarOptionsWithAliasesFile) ? void : typeof opt extends TarOptionsWithAliasesNoFile ? SyncClass : void | SyncClass;
|
|
(opt: TarOptionsWithAliasesSync, entries: string[]): typeof opt extends TarOptionsWithAliasesFile ? void : typeof opt extends TarOptionsWithAliasesNoFile ? SyncClass : void | SyncClass;
|
|
} & {
|
|
(opt: TarOptionsWithAliasesAsync): typeof opt extends (TarOptionsWithAliasesFile) ? Promise<void> : typeof opt extends TarOptionsWithAliasesNoFile ? AsyncClass : Promise<void> | AsyncClass;
|
|
(opt: TarOptionsWithAliasesAsync, entries: string[]): typeof opt extends TarOptionsWithAliasesFile ? Promise<void> : typeof opt extends TarOptionsWithAliasesNoFile ? AsyncClass : Promise<void> | AsyncClass;
|
|
(opt: TarOptionsWithAliasesAsync, cb: CB): Promise<void>;
|
|
(opt: TarOptionsWithAliasesAsync, entries: string[], cb: CB): typeof opt extends TarOptionsWithAliasesFile ? Promise<void> : typeof opt extends TarOptionsWithAliasesNoFile ? never : Promise<void>;
|
|
} & {
|
|
(opt: TarOptionsWithAliasesFile): Promise<void> | void;
|
|
(opt: TarOptionsWithAliasesFile, entries: string[]): typeof opt extends TarOptionsWithAliasesSync ? void : typeof opt extends TarOptionsWithAliasesAsync ? Promise<void> : Promise<void> | void;
|
|
(opt: TarOptionsWithAliasesFile, cb: CB): Promise<void>;
|
|
(opt: TarOptionsWithAliasesFile, entries: string[], cb: CB): typeof opt extends TarOptionsWithAliasesSync ? never : typeof opt extends TarOptionsWithAliasesAsync ? Promise<void> : Promise<void>;
|
|
} & {
|
|
(opt: TarOptionsWithAliasesNoFile): typeof opt extends (TarOptionsWithAliasesSync) ? SyncClass : typeof opt extends TarOptionsWithAliasesAsync ? AsyncClass : SyncClass | AsyncClass;
|
|
(opt: TarOptionsWithAliasesNoFile, entries: string[]): typeof opt extends TarOptionsWithAliasesSync ? SyncClass : typeof opt extends TarOptionsWithAliasesAsync ? AsyncClass : SyncClass | AsyncClass;
|
|
} & {
|
|
(opt: TarOptionsWithAliases): typeof opt extends (TarOptionsWithAliasesFile) ? typeof opt extends TarOptionsWithAliasesSync ? void : typeof opt extends TarOptionsWithAliasesAsync ? Promise<void> : void | Promise<void> : typeof opt extends TarOptionsWithAliasesNoFile ? typeof opt extends TarOptionsWithAliasesSync ? SyncClass : typeof opt extends TarOptionsWithAliasesAsync ? AsyncClass : SyncClass | AsyncClass : typeof opt extends TarOptionsWithAliasesSync ? SyncClass | void : typeof opt extends TarOptionsWithAliasesAsync ? AsyncClass | Promise<void> : SyncClass | void | AsyncClass | Promise<void>;
|
|
} & {
|
|
syncFile: (opt: TarOptionsSyncFile, entries: string[]) => void;
|
|
asyncFile: (opt: TarOptionsAsyncFile, entries: string[], cb?: CB) => Promise<void>;
|
|
syncNoFile: (opt: TarOptionsSyncNoFile, entries: string[]) => SyncClass;
|
|
asyncNoFile: (opt: TarOptionsAsyncNoFile, entries: string[]) => AsyncClass;
|
|
validate?: (opt: TarOptions, entries?: string[]) => void;
|
|
};
|
|
export declare const makeCommand: <AsyncClass, SyncClass extends {
|
|
sync: true;
|
|
}>(syncFile: (opt: TarOptionsSyncFile, entries: string[]) => void, asyncFile: (opt: TarOptionsAsyncFile, entries: string[], cb?: CB) => Promise<void>, syncNoFile: (opt: TarOptionsSyncNoFile, entries: string[]) => SyncClass, asyncNoFile: (opt: TarOptionsAsyncNoFile, entries: string[]) => AsyncClass, validate?: (opt: TarOptions, entries?: string[]) => void) => TarCommand<AsyncClass, SyncClass>;
|
|
//# sourceMappingURL=make-command.d.ts.map
|