diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /intl/icu_capi/js/package/lib/ICU4XListFormatter.d.ts | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'intl/icu_capi/js/package/lib/ICU4XListFormatter.d.ts')
-rw-r--r-- | intl/icu_capi/js/package/lib/ICU4XListFormatter.d.ts | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/intl/icu_capi/js/package/lib/ICU4XListFormatter.d.ts b/intl/icu_capi/js/package/lib/ICU4XListFormatter.d.ts new file mode 100644 index 0000000000..c60883f02f --- /dev/null +++ b/intl/icu_capi/js/package/lib/ICU4XListFormatter.d.ts @@ -0,0 +1,47 @@ +import { FFIError } from "./diplomat-runtime" +import { ICU4XDataProvider } from "./ICU4XDataProvider"; +import { ICU4XError } from "./ICU4XError"; +import { ICU4XList } from "./ICU4XList"; +import { ICU4XListLength } from "./ICU4XListLength"; +import { ICU4XLocale } from "./ICU4XLocale"; + +/** + + * See the {@link https://docs.rs/icu/latest/icu/list/struct.ListFormatter.html Rust documentation for `ListFormatter`} for more information. + */ +export class ICU4XListFormatter { + + /** + + * Construct a new ICU4XListFormatter instance for And patterns + + * See the {@link https://docs.rs/icu/latest/icu/list/struct.ListFormatter.html#method.try_new_and_with_length Rust documentation for `try_new_and_with_length`} for more information. + * @throws {@link FFIError}<{@link ICU4XError}> + */ + static create_and_with_length(provider: ICU4XDataProvider, locale: ICU4XLocale, length: ICU4XListLength): ICU4XListFormatter | never; + + /** + + * Construct a new ICU4XListFormatter instance for And patterns + + * See the {@link https://docs.rs/icu/latest/icu/list/struct.ListFormatter.html#method.try_new_or_with_length Rust documentation for `try_new_or_with_length`} for more information. + * @throws {@link FFIError}<{@link ICU4XError}> + */ + static create_or_with_length(provider: ICU4XDataProvider, locale: ICU4XLocale, length: ICU4XListLength): ICU4XListFormatter | never; + + /** + + * Construct a new ICU4XListFormatter instance for And patterns + + * See the {@link https://docs.rs/icu/latest/icu/list/struct.ListFormatter.html#method.try_new_unit_with_length Rust documentation for `try_new_unit_with_length`} for more information. + * @throws {@link FFIError}<{@link ICU4XError}> + */ + static create_unit_with_length(provider: ICU4XDataProvider, locale: ICU4XLocale, length: ICU4XListLength): ICU4XListFormatter | never; + + /** + + * See the {@link https://docs.rs/icu/latest/icu/list/struct.ListFormatter.html#method.format Rust documentation for `format`} for more information. + * @throws {@link FFIError}<{@link ICU4XError}> + */ + format(list: ICU4XList): string | never; +} |