tor-browser

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

CalendarKind.d.ts (1564B)


      1 // generated by diplomat-tool
      2 import type { Locale } from "./Locale"
      3 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      4 
      5 
      6 /**
      7 * The various calendar types currently supported by [`Calendar`]
      8 *
      9 * See the [Rust documentation for `AnyCalendarKind`](https://docs.rs/icu/latest/icu/calendar/enum.AnyCalendarKind.html) for more information.
     10 */
     11 
     12 
     13 export class CalendarKind {
     14 
     15    static fromValue(value: CalendarKind | string): CalendarKind;
     16 
     17    get value(): string;
     18 
     19    get ffiValue(): number;
     20 
     21    static Iso : CalendarKind;
     22    static Gregorian : CalendarKind;
     23    static Buddhist : CalendarKind;
     24    static Japanese : CalendarKind;
     25    static JapaneseExtended : CalendarKind;
     26    static Ethiopian : CalendarKind;
     27    static EthiopianAmeteAlem : CalendarKind;
     28    static Indian : CalendarKind;
     29    static Coptic : CalendarKind;
     30    static Dangi : CalendarKind;
     31    static Chinese : CalendarKind;
     32    static Hebrew : CalendarKind;
     33    static HijriTabularTypeIiFriday : CalendarKind;
     34    static HijriSimulatedMecca : CalendarKind;
     35    static HijriTabularTypeIiThursday : CalendarKind;
     36    static HijriUmmAlQura : CalendarKind;
     37    static Persian : CalendarKind;
     38    static Roc : CalendarKind;
     39 
     40 
     41    /**
     42     * Creates a new [`CalendarKind`] for the specified locale, using compiled data.
     43     *
     44     * See the [Rust documentation for `new`](https://docs.rs/icu/latest/icu/calendar/enum.AnyCalendarKind.html#method.new) for more information.
     45     */
     46    static create(locale: Locale): CalendarKind;
     47 
     48    constructor(value: CalendarKind | string );
     49 }