GeckoPreference.d.ts (709B)
1 /** 2 * Format of a Gecko pref for GeckoView purposes. 3 */ 4 export interface GeckoPreference { 5 /** 6 * The name of the pref (e.g., "some.preference.item"). 7 */ 8 pref: string; 9 10 /** 11 * The Ci.nsIPrefBranch type of the pref. 12 * 13 * PREF_INVALID = 0 14 * PREF_STRING = 32 15 * PREF_INT = 64 16 * PREF_BOOL = 128 17 */ 18 type: 0 | 32 | 64 | 128; 19 20 /** 21 * The current default value of the pref. Could be a string, boolean, or number. It will depend on the pref type. 22 */ 23 defaultValue: string | boolean | number | null; 24 25 /** 26 * The current default value of the pref. Could be a string, boolean, or number. It will depend on the pref type. 27 */ 28 userValue: string | boolean | number | null; 29 }