tor-browser

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

DisplayNamesOptions.d.ts (1296B)


      1 // generated by diplomat-tool
      2 import type { DisplayNamesFallback } from "./DisplayNamesFallback"
      3 import type { DisplayNamesStyle } from "./DisplayNamesStyle"
      4 import type { LanguageDisplay } from "./LanguageDisplay"
      5 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      6 
      7 
      8 /**
      9 * See the [Rust documentation for `DisplayNamesOptions`](https://docs.rs/icu/latest/icu/experimental/displaynames/options/struct.DisplayNamesOptions.html) for more information.
     10 */
     11 type DisplayNamesOptions_obj = {
     12    style?: DisplayNamesStyle | null;
     13    fallback?: DisplayNamesFallback | null;
     14    languageDisplay?: LanguageDisplay | null;
     15 };
     16 
     17 
     18 
     19 export class DisplayNamesOptions {
     20    get style(): DisplayNamesStyle | null;
     21    set style(value: DisplayNamesStyle | null);
     22    get fallback(): DisplayNamesFallback | null;
     23    set fallback(value: DisplayNamesFallback | null);
     24    get languageDisplay(): LanguageDisplay | null;
     25    set languageDisplay(value: LanguageDisplay | null);
     26    /** Create `DisplayNamesOptions` from an object that contains all of `DisplayNamesOptions`s fields.
     27    * Optional fields do not need to be included in the provided object.
     28    */
     29    static fromFields(structObj : DisplayNamesOptions_obj) : DisplayNamesOptions;
     30 
     31 
     32 
     33    constructor(structObj: DisplayNamesOptions_obj);
     34 }