aviation-names 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ //#region src/airline.d.ts
2
+ /**
3
+ * Looks up an airline brand name by its 2-character IATA designator.
4
+ *
5
+ * Input is trimmed and upper-cased, so `"ga"` and `" GA "` both resolve.
6
+ * Unknown or malformed codes return `null` rather than throwing.
7
+ *
8
+ * An IATA airline designator does not imply IATA membership; this package does
9
+ * not use membership as an inclusion criterion.
10
+ *
11
+ * @example
12
+ * airline("GA"); // "Garuda Indonesia"
13
+ * airline("ZZ"); // null
14
+ */
15
+ declare const airline: (code: string) => string | null;
16
+ //#endregion
17
+ export { airline };
@@ -0,0 +1,17 @@
1
+ //#region src/airline.d.ts
2
+ /**
3
+ * Looks up an airline brand name by its 2-character IATA designator.
4
+ *
5
+ * Input is trimmed and upper-cased, so `"ga"` and `" GA "` both resolve.
6
+ * Unknown or malformed codes return `null` rather than throwing.
7
+ *
8
+ * An IATA airline designator does not imply IATA membership; this package does
9
+ * not use membership as an inclusion criterion.
10
+ *
11
+ * @example
12
+ * airline("GA"); // "Garuda Indonesia"
13
+ * airline("ZZ"); // null
14
+ */
15
+ declare const airline: (code: string) => string | null;
16
+ //#endregion
17
+ export { airline };
@@ -0,0 +1,2 @@
1
+ import { t as airline } from "./airline-br_1PcDp.js";
2
+ export { airline };