@iobroker/types 5.0.11 → 5.0.12-alpha.0-20230808-701863ef

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.
@@ -501,7 +501,7 @@ declare global {
501
501
  localLinks?: Record<string, string>;
502
502
  /** @deprecated Use @see localLinks */
503
503
  localLink?: string;
504
- logLevel?: LogLevel;
504
+ loglevel?: LogLevel;
505
505
  /** Whether this adapter receives logs from other hosts and adapters (e.g. to strore them somewhere) */
506
506
  logTransporter?: boolean;
507
507
  /** Path to the start file of the adapter. Should be the same as in `package.json` */
package/build/shared.d.ts CHANGED
@@ -318,8 +318,6 @@ declare global {
318
318
  | 'restartLoop'
319
319
  | 'fileToJsonl';
320
320
  }
321
-
322
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
323
321
  interface AdapterConfig {
324
322
  // This is a stub to be augmented in every adapter
325
323
  }
package/build/types.d.ts CHANGED
@@ -417,7 +417,7 @@ export declare class AdapterClass extends EventEmitter {
417
417
  * This method update the cached values in `this.usernames`
418
418
  */
419
419
  private _updateUsernameCache;
420
- getUserID(username: string): Promise<string | void>;
420
+ getUserID(username: string): Promise<string | undefined>;
421
421
  private _getUserID;
422
422
  setPassword(user: string, pw: string, options: Record<string, any>, callback?: ioBroker.ErrorCallback): Promise<void>;
423
423
  setPassword(user: string, pw: string, callback?: ioBroker.ErrorCallback): Promise<void>;
@@ -451,11 +451,11 @@ export declare class AdapterClass extends EventEmitter {
451
451
  disable(): ioBroker.SetObjectPromise;
452
452
  getEncryptedConfig(attribute: string, callback?: GetEncryptedConfigCallback): Promise<string | void>;
453
453
  private _getEncryptedConfig;
454
- setTimeout(cb: TimeoutCallback, timeout: number, ...args: any[]): NodeJS.Timeout | void;
455
- clearTimeout(timer: NodeJS.Timeout): void;
454
+ setTimeout(cb: TimeoutCallback, timeout: number, ...args: any[]): ioBroker.Timeout | undefined;
455
+ clearTimeout(timer: ioBroker.Timeout | undefined): void;
456
456
  delay(timeout: number): Promise<void>;
457
- setInterval(cb: TimeoutCallback, timeout: number, ...args: any[]): NodeJS.Timeout | void;
458
- clearInterval(interval: NodeJS.Timeout): void;
457
+ setInterval(cb: TimeoutCallback, timeout: number, ...args: any[]): ioBroker.Interval | undefined;
458
+ clearInterval(interval: ioBroker.Interval | undefined): void;
459
459
  setObject(id: string, obj: ioBroker.SettableObject, callback?: ioBroker.SetObjectCallback): Promise<void>;
460
460
  setObject(id: string, obj: ioBroker.SettableObject, options: unknown, callback?: ioBroker.SetObjectCallback): Promise<void>;
461
461
  setObject(id: string, obj: ioBroker.SettableObject, callback?: ioBroker.SetObjectCallback): Promise<void>;
@@ -616,10 +616,10 @@ export declare class AdapterClass extends EventEmitter {
616
616
  sendToHost(hostName: string | null, command: string, message: any, callback?: ioBroker.MessageCallback | ioBroker.MessageCallbackInfo): void;
617
617
  private _sendToHost;
618
618
  registerNotification<Scope extends keyof ioBroker.NotificationScopes>(scope: Scope, category: ioBroker.NotificationScopes[Scope] | null, message: string): Promise<void>;
619
- setState<T extends ioBroker.SetStateCallback | undefined>(id: string | ioBroker.IdObject, state: ioBroker.State | ioBroker.StateValue | ioBroker.SettableState, callback?: T): T extends ioBroker.SetStateCallback ? Promise<void> : ioBroker.SetStatePromise;
620
- setState<T extends ioBroker.SetStateCallback>(id: string | ioBroker.IdObject, state: ioBroker.State | ioBroker.StateValue | ioBroker.SettableState, ack: boolean, callback?: T): T extends ioBroker.SetStateCallback ? Promise<void> : ioBroker.SetStatePromise;
621
- setState<T extends ioBroker.SetStateCallback>(id: string | ioBroker.IdObject, state: ioBroker.State | ioBroker.StateValue | ioBroker.SettableState, options?: Partial<GetUserGroupsOptions> | null, callback?: T): T extends ioBroker.SetStateCallback ? Promise<void> : ioBroker.SetStatePromise;
622
- setState<T extends ioBroker.SetStateCallback>(id: string | ioBroker.IdObject, state: ioBroker.State | ioBroker.StateValue | ioBroker.SettableState, ack: boolean, options?: Partial<GetUserGroupsOptions> | null, callback?: T): T extends ioBroker.SetStateCallback ? Promise<void> : ioBroker.SetStatePromise;
619
+ setState<T extends ioBroker.SetStateCallback | undefined>(id: string | ioBroker.IdObject, state: ioBroker.State | ioBroker.StateValue | ioBroker.SettableState, callback?: T): T extends ioBroker.SetStateCallback ? void : ioBroker.SetStatePromise;
620
+ setState<T extends ioBroker.SetStateCallback>(id: string | ioBroker.IdObject, state: ioBroker.State | ioBroker.StateValue | ioBroker.SettableState, ack: boolean, callback?: T): T extends ioBroker.SetStateCallback ? void : ioBroker.SetStatePromise;
621
+ setState<T extends ioBroker.SetStateCallback>(id: string | ioBroker.IdObject, state: ioBroker.State | ioBroker.StateValue | ioBroker.SettableState, options?: Partial<GetUserGroupsOptions> | null, callback?: T): T extends ioBroker.SetStateCallback ? void : ioBroker.SetStatePromise;
622
+ setState<T extends ioBroker.SetStateCallback>(id: string | ioBroker.IdObject, state: ioBroker.State | ioBroker.StateValue | ioBroker.SettableState, ack: boolean, options?: Partial<GetUserGroupsOptions> | null, callback?: T): T extends ioBroker.SetStateCallback ? void : ioBroker.SetStatePromise;
623
623
  private _setState;
624
624
  private _getUserGroups;
625
625
  private _checkState;
package/package.json CHANGED
@@ -1,45 +1,45 @@
1
1
  {
2
- "name": "@iobroker/types",
3
- "version": "5.0.11",
4
- "engines": {
5
- "node": ">=12.0.0"
6
- },
7
- "keywords": [
8
- "ioBroker"
9
- ],
10
- "author": "foxriver76 <moritz.heusinger@gmail.com>",
11
- "contributors": [
12
- "foxriver76 <moritz.heusinger@gmail.com>"
13
- ],
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/ioBroker/ioBroker.js-controller/packages/types"
17
- },
18
- "devDependencies": {
19
- "tsd": "^0.24.1"
20
- },
21
- "scripts": {
22
- "build": "ts-node build.ts",
23
- "test": "tsd"
24
- },
25
- "main": "index.js",
26
- "types": "index.d.ts",
27
- "license": "MIT",
28
- "publishConfig": {
29
- "access": "public"
30
- },
31
- "files": [
32
- "build/",
33
- "index.d.ts",
34
- "public.d.ts",
35
- "LICENSE"
36
- ],
37
- "tsd": {
38
- "compilerOptions": {
39
- "types": [
40
- "@iobroker/types"
41
- ]
42
- }
43
- },
44
- "gitHead": "d813abf88d4a029a150777c2da5b162f93aa1a71"
2
+ "name": "@iobroker/types",
3
+ "version": "5.0.12-alpha.0-20230808-701863ef",
4
+ "engines": {
5
+ "node": ">=12.0.0"
6
+ },
7
+ "keywords": [
8
+ "ioBroker"
9
+ ],
10
+ "author": "foxriver76 <moritz.heusinger@gmail.com>",
11
+ "contributors": [
12
+ "foxriver76 <moritz.heusinger@gmail.com>"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/ioBroker/ioBroker.js-controller/packages/types"
17
+ },
18
+ "devDependencies": {
19
+ "tsd": "^0.24.1"
20
+ },
21
+ "scripts": {
22
+ "build": "ts-node build.ts",
23
+ "test": "tsd"
24
+ },
25
+ "main": "index.js",
26
+ "types": "index.d.ts",
27
+ "license": "MIT",
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "files": [
32
+ "build/",
33
+ "index.d.ts",
34
+ "public.d.ts",
35
+ "LICENSE"
36
+ ],
37
+ "tsd": {
38
+ "compilerOptions": {
39
+ "types": [
40
+ "@iobroker/types"
41
+ ]
42
+ }
43
+ },
44
+ "gitHead": "bf32a25bffd328c1c0abc8d0a03cfcd96284f873"
45
45
  }