// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial /** * The `un-locode.db` read interface. * * Declared beside the reader and the builder that writes it, so a column added * to one is a compile error against the other. */ /** * One UN/locode entry: the country and location codes that form its key, the place name in raw * and folded form, plus the coordinate pair when the source provides one. */ export interface UNLocodeTable { country: string location: string name: string | null nameNorm: string | null lat: number | null lon: number | null } /** * The tables in `un-locode.db`. */ export interface UNLocodeDatabase { un_locode: UNLocodeTable }