21 lines
845 B
TypeScript
21 lines
845 B
TypeScript
import { FFIError } from "./diplomat-runtime"
|
|
import { ICU4XDataProvider } from "./ICU4XDataProvider";
|
|
import { ICU4XError } from "./ICU4XError";
|
|
|
|
/**
|
|
|
|
* An object capable of computing the metazone from a timezone.
|
|
|
|
* This can be used via `maybe_calculate_metazone()` on {@link crate::timezone::ffi::ICU4XCustomTimeZone `ICU4XCustomTimeZone`}.
|
|
|
|
* See the {@link https://docs.rs/icu/latest/icu/timezone/struct.MetazoneCalculator.html Rust documentation for `MetazoneCalculator`} for more information.
|
|
*/
|
|
export class ICU4XMetazoneCalculator {
|
|
|
|
/**
|
|
|
|
* See the {@link https://docs.rs/icu/latest/icu/timezone/struct.MetazoneCalculator.html#method.new Rust documentation for `new`} for more information.
|
|
* @throws {@link FFIError}<{@link ICU4XError}>
|
|
*/
|
|
static create(provider: ICU4XDataProvider): ICU4XMetazoneCalculator | never;
|
|
}
|