@ledvance/base 1.1.44 → 1.1.46
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/package.json
CHANGED
|
@@ -44,11 +44,10 @@ export declare function useGroupConfig<T>(): [T, (dps: any, newConfig: T) => Pro
|
|
|
44
44
|
* @template GCPT GroupConfigPropertyType
|
|
45
45
|
* @param key
|
|
46
46
|
* @param dpKey
|
|
47
|
-
* @param extraDps
|
|
48
47
|
*/
|
|
49
48
|
export declare function useGroupConfigFeature<GC, GCPT extends {
|
|
50
49
|
[K in keyof GC]: GC[K];
|
|
51
|
-
}[keyof GC]>(key: keyof GC, dpKey?: string
|
|
50
|
+
}[keyof GC]>(key: keyof GC, dpKey?: string): [GCPT, (value: GCPT, dpValue: any, extraDps?: any) => Promise<Result<any>>];
|
|
52
51
|
export declare const useFanMaxSpeed: () => 3 | 20;
|
|
53
52
|
export declare const ldvModules: import("@reduxjs/toolkit").Reducer<NativeProps, import("@reduxjs/toolkit").AnyAction>;
|
|
54
53
|
export declare const setNativeProps: import("@reduxjs/toolkit").ActionCreatorWithPayload<NativeProps, string>, setGroupNativeProps: import("@reduxjs/toolkit").ActionCreatorWithPayload<NativeProps, string>, setDps: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setTimeSchedule: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setEnergieverbrauch: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
|
|
@@ -232,16 +232,15 @@ export function useGroupConfig<T>(): [T, (dps: any, newConfig: T) => Promise<Res
|
|
|
232
232
|
* @template GCPT GroupConfigPropertyType
|
|
233
233
|
* @param key
|
|
234
234
|
* @param dpKey
|
|
235
|
-
* @param extraDps
|
|
236
235
|
*/
|
|
237
236
|
export function useGroupConfigFeature<GC, GCPT extends { [K in keyof GC]: GC[K] }[keyof GC]>
|
|
238
|
-
(key: keyof GC, dpKey?: string
|
|
237
|
+
(key: keyof GC, dpKey?: string): [GCPT, (value: GCPT, dpValue: any, extraDps?: any) => Promise<Result<any>>] {
|
|
239
238
|
const [groupConfig, setGroupConfig] = useGroupConfig<GC>()
|
|
240
|
-
const setGroupConfigFeature = async (value: GCPT, dpValue: any) => {
|
|
239
|
+
const setGroupConfigFeature = async (value: GCPT, dpValue: any, extraDps?: any) => {
|
|
241
240
|
return await setGroupConfig(
|
|
242
241
|
{
|
|
243
242
|
[!!dpKey ? dpKey : GlobalParams.dpSchemaMap[snakeCase(key as string)].dp]: dpValue,
|
|
244
|
-
...extraDps,
|
|
243
|
+
...(extraDps || {}),
|
|
245
244
|
},
|
|
246
245
|
{
|
|
247
246
|
...groupConfig,
|