rattail 0.0.8 → 0.0.9

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/lib/index.d.cts CHANGED
@@ -106,8 +106,8 @@ declare function lowerFirst(s: string): string;
106
106
  declare function randomString(length?: number): string;
107
107
  declare function randomColor(): string;
108
108
 
109
- declare function mergeWith<TObject extends Record<string, any>, TSource extends Record<string, any>>(object: TObject, source: TSource, fn: (objValue: any, srcValue: any, key: string | number | symbol, object?: TObject, source?: TSource) => any): TObject & TSource;
110
- declare function merge<TObject extends Record<string, any>, TSource extends Record<string, any>>(object: TObject, source: TSource): TObject & TSource;
109
+ declare function mergeWith<T extends Record<string, any>, K extends Record<string, any>>(object: T, source: K, fn: (objValue: any, srcValue: any, key: string | number | symbol, object?: T, source?: K) => any): T & K;
110
+ declare function merge<T extends Record<string, any>, K extends Record<string, any>>(object: T, source: K): T & K;
111
111
  declare function cloneDeep<T>(value: T): T;
112
112
  declare function cloneDeepWith<T>(value: T, fn: (value: any) => any): T;
113
113
 
package/lib/index.d.ts CHANGED
@@ -106,8 +106,8 @@ declare function lowerFirst(s: string): string;
106
106
  declare function randomString(length?: number): string;
107
107
  declare function randomColor(): string;
108
108
 
109
- declare function mergeWith<TObject extends Record<string, any>, TSource extends Record<string, any>>(object: TObject, source: TSource, fn: (objValue: any, srcValue: any, key: string | number | symbol, object?: TObject, source?: TSource) => any): TObject & TSource;
110
- declare function merge<TObject extends Record<string, any>, TSource extends Record<string, any>>(object: TObject, source: TSource): TObject & TSource;
109
+ declare function mergeWith<T extends Record<string, any>, K extends Record<string, any>>(object: T, source: K, fn: (objValue: any, srcValue: any, key: string | number | symbol, object?: T, source?: K) => any): T & K;
110
+ declare function merge<T extends Record<string, any>, K extends Record<string, any>>(object: T, source: K): T & K;
111
111
  declare function cloneDeep<T>(value: T): T;
112
112
  declare function cloneDeepWith<T>(value: T, fn: (value: any) => any): T;
113
113
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rattail",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.js",