summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/lib/ICU4XLocaleFallbackIterator.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'intl/icu_capi/js/package/lib/ICU4XLocaleFallbackIterator.d.ts')
-rw-r--r--intl/icu_capi/js/package/lib/ICU4XLocaleFallbackIterator.d.ts26
1 files changed, 26 insertions, 0 deletions
diff --git a/intl/icu_capi/js/package/lib/ICU4XLocaleFallbackIterator.d.ts b/intl/icu_capi/js/package/lib/ICU4XLocaleFallbackIterator.d.ts
new file mode 100644
index 0000000000..348d2a7386
--- /dev/null
+++ b/intl/icu_capi/js/package/lib/ICU4XLocaleFallbackIterator.d.ts
@@ -0,0 +1,26 @@
+import { ICU4XLocale } from "./ICU4XLocale";
+
+/**
+
+ * An iterator over the locale under fallback.
+
+ * See the {@link https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbackIterator.html Rust documentation for `LocaleFallbackIterator`} for more information.
+ */
+export class ICU4XLocaleFallbackIterator {
+
+ /**
+
+ * Gets a snapshot of the current state of the locale.
+
+ * See the {@link https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbackIterator.html#method.get Rust documentation for `get`} for more information.
+ */
+ get(): ICU4XLocale;
+
+ /**
+
+ * Performs one step of the fallback algorithm, mutating the locale.
+
+ * See the {@link https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbackIterator.html#method.step Rust documentation for `step`} for more information.
+ */
+ step(): void;
+}