mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-03 00:30:14 +00:00
ioBroker: Remove access to the states and objects DB (#41161)
* remove access to adapter.states and adapter.objects * format with Prettier
This commit is contained in:
1273
types/iobroker/index.d.ts
vendored
1273
types/iobroker/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
@@ -283,10 +283,15 @@ adapter.unsubscribeForeignObjectsAsync("*").catch(handleError);
|
||||
|
||||
adapter.getHistory("state.id", {}, (err, result: ioBroker.GetHistoryResult) => {});
|
||||
|
||||
adapter.terminate();
|
||||
adapter.terminate(1);
|
||||
adapter.terminate("Reason");
|
||||
adapter.terminate("Reason", 4);
|
||||
(() => adapter.terminate())();
|
||||
(() => adapter.terminate(1))();
|
||||
(() => adapter.terminate("Reason"))();
|
||||
(() => adapter.terminate("Reason", 4))();
|
||||
|
||||
// $ExpectError
|
||||
adapter.states.getStates();
|
||||
// $ExpectError
|
||||
adapter.objects.getObjectView();
|
||||
|
||||
// Repro from https://github.com/ioBroker/adapter-core/issues/3
|
||||
const repro1: ioBroker.ObjectChangeHandler = (id, obj) => {
|
||||
|
||||
Reference in New Issue
Block a user