@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.
- package/build/objects.d.ts +1 -1
- package/build/shared.d.ts +0 -2
- package/build/types.d.ts +9 -9
- package/package.json +43 -43
package/build/objects.d.ts
CHANGED
|
@@ -501,7 +501,7 @@ declare global {
|
|
|
501
501
|
localLinks?: Record<string, string>;
|
|
502
502
|
/** @deprecated Use @see localLinks */
|
|
503
503
|
localLink?: string;
|
|
504
|
-
|
|
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
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 |
|
|
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[]):
|
|
455
|
-
clearTimeout(timer:
|
|
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[]):
|
|
458
|
-
clearInterval(interval:
|
|
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 ?
|
|
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 ?
|
|
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 ?
|
|
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 ?
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
}
|