wenay-common 1.0.142 → 1.0.144
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.
|
@@ -193,7 +193,7 @@ export type IParamsExpandable = {
|
|
|
193
193
|
export type IParamsExpandableReadonly = ReadonlyFull<IParamsExpandable>;
|
|
194
194
|
export declare function isParamGroupOrArray<TParam extends IParamReadonly>(param: TParam): param is Extract<TParam, ReadonlyFull<IParamGroup | IParamArr<any>>>;
|
|
195
195
|
export declare function isParamGroup<TParam extends IParamReadonly>(param: TParam): param is Extract<TParam, ReadonlyFull<IParamGroup>>;
|
|
196
|
-
export declare function isSimpleParams(params:
|
|
196
|
+
export declare function isSimpleParams<TParams extends IParamsReadonly>(params: TParams | SimpleParams): boolean;
|
|
197
197
|
type ObjectKeyPath<TObject extends object = object, TValue = unknown> = readonly string[];
|
|
198
198
|
export declare function iterateParams<TObj extends IParamsReadonly, TVal extends IParamReadonly = TObj[string]>(obj: TObj, currentPath?: ObjectKeyPath<TObj, TVal>): Generator<[key: string, value: TVal, path: ObjectKeyPath<TObj, TVal>]>;
|
|
199
199
|
export declare function enableAllParams<T extends IParamsReadonly>(params: T, enabled?: boolean): T;
|
|
@@ -213,5 +213,5 @@ export type SimpleParamsMutable<T> = T extends const_Date ? const_Date : Mutable
|
|
|
213
213
|
};
|
|
214
214
|
export type SimpleParams<T = IParams> = ReadonlyFull<SimpleParamsMutable<T>>;
|
|
215
215
|
export declare function GetSimpleParams<T extends ReadonlyFull<IParams>>(params: T): SimpleParamsMutable<T>;
|
|
216
|
-
export declare function mergeParamValuesToInfos<TParams extends IParamsReadonly>(srcObj:
|
|
216
|
+
export declare function mergeParamValuesToInfos<TParams extends IParamsReadonly>(srcObj: TParams, valuesObj: SimpleParams | TParams): TParams;
|
|
217
217
|
export {};
|
package/lib/Exchange/CParams.js
CHANGED