Calendar.d.ts (1064B)
1 // generated by diplomat-tool 2 import type { CalendarKind } from "./CalendarKind" 3 import type { DataError } from "./DataError" 4 import type { DataProvider } from "./DataProvider" 5 import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 6 7 8 /** 9 * See the [Rust documentation for `AnyCalendar`](https://docs.rs/icu/latest/icu/calendar/enum.AnyCalendar.html) for more information. 10 */ 11 12 13 export class Calendar { 14 get ffiValue(): pointer; 15 16 17 /** 18 * Creates a new [`Calendar`] for the specified kind, using a particular data source. 19 * 20 * See the [Rust documentation for `new`](https://docs.rs/icu/latest/icu/calendar/enum.AnyCalendar.html#method.new) for more information. 21 */ 22 static createWithProvider(provider: DataProvider, kind: CalendarKind): Calendar; 23 24 /** 25 * Returns the kind of this calendar 26 * 27 * See the [Rust documentation for `kind`](https://docs.rs/icu/latest/icu/calendar/enum.AnyCalendar.html#method.kind) for more information. 28 */ 29 get kind(): CalendarKind; 30 31 constructor(kind: CalendarKind); 32 }