-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[typing] Added types to adapter.ts #2922
base: master
Are you sure you want to change the base?
Conversation
This PR is really easy to merge and it is manageable |
@@ -1437,8 +1454,7 @@ export class AdapterClass extends EventEmitter { | |||
options?: Record<string, any> | null, | |||
): Promise<(ioBroker.AnyObject | null)[]> { | |||
try { | |||
const res = await this.#objects!.getObjects(keys, options); | |||
return res; | |||
return this.#objects!.getObjects(keys, options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will lead the catch not being functional anymore, can we please minimize PRs to the things we actually want to achieve with them. Personally I don't know what the goal of the adapter.ts changes is as none really rely on the added types.
@@ -272,11 +279,12 @@ | |||
"jsonlOptions": { | |||
"$ref": "#/definitions/JsonlOptions" | |||
}, | |||
"maxQueue": { | |||
"type": "number", | |||
"description": "do not let messages grow without a limit" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
descriptions seem to start with an uppercase letter in general.
@@ -513,6 +521,10 @@ | |||
}, | |||
"jsonlOptions": { | |||
"$ref": "#/definitions/JsonlOptions" | |||
}, | |||
"maxQueue": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as used multiple times could be put into a definition
Added some typing to adapter.ts
mostly for 'adapter.systemConfig' (I thought that it is content of 'systetm.config' object)
Tests