Debian Codegraph @

intl/icu_capi/bindings/js/ICU4XCalendar.d.ts

raw
1 import { FFIError } from "./diplomat-runtime"
2 import { ICU4XAnyCalendarKind } from "./ICU4XAnyCalendarKind";
3 import { ICU4XDataProvider } from "./ICU4XDataProvider";
4 import { ICU4XError } from "./ICU4XError";
5 import { ICU4XLocale } from "./ICU4XLocale";
6
7 /**
8
9 * See the {@link https://docs.rs/icu/latest/icu/calendar/enum.AnyCalendar.html Rust documentation for `AnyCalendar`} for more information.
10 */
11 export class ICU4XCalendar {
12
13 /**
14
15 * Creates a new {@link ICU4XCalendar `ICU4XCalendar`} from the specified date and time.
16
17 * See the {@link https://docs.rs/icu/latest/icu/calendar/enum.AnyCalendar.html#method.new_for_locale Rust documentation for `new_for_locale`} for more information.
18 * @throws {@link FFIError}<{@link ICU4XError}>
19 */
20 static create_for_locale(provider: ICU4XDataProvider, locale: ICU4XLocale): ICU4XCalendar | never;
21
22 /**
23
24 * Creates a new {@link ICU4XCalendar `ICU4XCalendar`} from the specified date and time.
25
26 * See the {@link https://docs.rs/icu/latest/icu/calendar/enum.AnyCalendar.html#method.new Rust documentation for `new`} for more information.
27 * @throws {@link FFIError}<{@link ICU4XError}>
28 */
29 static create_for_kind(provider: ICU4XDataProvider, kind: ICU4XAnyCalendarKind): ICU4XCalendar | never;
30
31 /**
32
33 * Returns the kind of this calendar
34
35 * See the {@link https://docs.rs/icu/latest/icu/calendar/enum.AnyCalendar.html#method.kind Rust documentation for `kind`} for more information.
36 */
37 kind(): ICU4XAnyCalendarKind;
38 }