diff options
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; +} |