AustralianStateCode型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The code of an Australian state or territory, as Australia Post writes it on the last line of an address.
インポート
import type { AustralianStateCode } from "@johnmorrisdotca/address-plus/au";
ほかのエクスポート元: @johnmorrisdotca/address-plus
定義
type AustralianStateCode = "ACT" | "NSW" | "NT" | "QLD" | "SA" | "TAS" | "VIC" | "WA";
例
import { getStateFromAustralianPostcode } from "@johnmorrisdotca/address-plus/au";
import type { AustralianStateCode } from "@johnmorrisdotca/address-plus/au";
console.log(getStateFromAustralianPostcode("3000"));
// → "VIC"VIC出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。