@iobroker/types 6.0.5 → 6.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -743,13 +743,19 @@ declare global {
743
743
  /** If floating comma is used instead of dot */
744
744
  isFloatComma: boolean;
745
745
  /** Configured longitude */
746
- longitude: string;
746
+ longitude?: number;
747
747
  /** Configured latitude */
748
- latitude: string;
748
+ latitude?: number;
749
749
  /** Optional user's city (only for diagnostics) */
750
750
  city?: string;
751
751
  /** Optional user's country (only for diagnostics) */
752
752
  country?: string;
753
+ /** User-defined temperature unit */
754
+ tempUnit?: '°C' | '°F';
755
+ /** User-defined currency */
756
+ currency?: string;
757
+ /** User-defined first day of the week */
758
+ firstDayOfWeek?: 'monday' | 'sunday';
753
759
  /** Default history instance */
754
760
  defaultHistory: string;
755
761
  /** Which diag data is allowed to be sent */
package/build/shared.d.ts CHANGED
@@ -15,6 +15,9 @@ type AtLeastOne<T, Req = { [K in keyof T]-?: T[K] }, Opt = { [K in keyof T]+?: T
15
15
  [K in keyof Req]: Omit<Opt, K> & { [P in K]: Req[P] };
16
16
  }[keyof Req];
17
17
 
18
+ /** Type of T but makes specific optional properties required */
19
+ export type WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] };
20
+
18
21
  declare global {
19
22
  namespace ioBroker {
20
23
  /** Two-way mapping for state quality ("q" attribute of a state) */
package/build/types.d.ts CHANGED
@@ -365,9 +365,9 @@ export declare class AdapterClass extends EventEmitter {
365
365
  /** configured language of system.config, only available if requested via AdapterOptions `useFormatDate` */
366
366
  language?: ioBroker.Languages;
367
367
  /** longitude configured in system.config, only available if requested via AdapterOptions `useFormatDate`*/
368
- longitude?: string;
368
+ longitude?: number;
369
369
  /** latitude configured in system.config, only available if requested via AdapterOptions `useFormatDate`*/
370
- latitude?: string;
370
+ latitude?: number;
371
371
  private _defaultObjs?;
372
372
  private _aliasObjectsSubscribed?;
373
373
  config: ioBroker.AdapterConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/types",
3
- "version": "6.0.5",
3
+ "version": "6.0.6",
4
4
  "engines": {
5
5
  "node": ">=12.0.0"
6
6
  },
@@ -41,5 +41,5 @@
41
41
  ]
42
42
  }
43
43
  },
44
- "gitHead": "ae36e4198ad3f2311da0d649765a020f67fa73dd"
44
+ "gitHead": "f8cc35d9fea0f63dbd1716f36d6d8f506aa1465a"
45
45
  }