tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

DateTimeWriteError.d.ts (784B)


      1 // generated by diplomat-tool
      2 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      3 
      4 
      5 /**
      6 * An error when formatting a datetime.
      7 *
      8 * Currently the only reachable error here is a missing time zone variant. If you encounter
      9 * that error, you need to call `with_variant` or `infer_variant` on your `TimeZoneInfo`.
     10 *
     11 * Additional information: [1](https://docs.rs/icu/latest/icu/datetime/unchecked/enum.FormattedDateTimeUncheckedError.html)
     12 */
     13 
     14 
     15 export class DateTimeWriteError {
     16 
     17    static fromValue(value: DateTimeWriteError | string): DateTimeWriteError;
     18 
     19    get value(): string;
     20 
     21    get ffiValue(): number;
     22 
     23    static Unknown : DateTimeWriteError;
     24    static MissingTimeZoneVariant : DateTimeWriteError;
     25 
     26 
     27    constructor(value: DateTimeWriteError | string );
     28 }