@iobroker/types 5.0.2 → 5.0.3

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/shared.d.ts CHANGED
@@ -398,10 +398,10 @@ declare global {
398
398
  /** Infers the return type from a callback-style API and and leaves null and undefined in */
399
399
  type CallbackReturnTypeOf<T extends (...args: any[]) => any> = SecondParameterOf<T>;
400
400
 
401
- type GetStateCallback = (err: Error | null, state?: State | null) => void;
401
+ type GetStateCallback = (err?: Error | null, state?: State | null) => void;
402
402
  type GetStatePromise = Promise<CallbackReturnTypeOf<GetStateCallback>>;
403
403
 
404
- type GetStatesCallback = (err: Error | null, states?: Record<string, State>) => void;
404
+ type GetStatesCallback = (err?: Error | null, states?: Record<string, State>) => void;
405
405
  type GetStatesPromise = Promise<NonNullCallbackReturnTypeOf<GetStatesCallback>>;
406
406
 
407
407
  type GetBinaryStateCallback = (err?: Error | null, state?: Buffer) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/types",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "engines": {
5
5
  "node": ">=12.0.0"
6
6
  },
@@ -41,5 +41,5 @@
41
41
  ]
42
42
  }
43
43
  },
44
- "gitHead": "fdb425b12096f71d661b0d8a59781430d8a58504"
44
+ "gitHead": "ac8847e45c42c3598e29ff45bde97773ed729b1a"
45
45
  }