mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-09-08 18:20:34 +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:
Vendored
+629
-644
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