@alextheman/utility 2.3.1 → 2.3.2

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/dist/index.d.cts CHANGED
@@ -20,7 +20,7 @@ declare function isMonthlyMultiple(firstDate: Date, secondDate: Date): boolean;
20
20
 
21
21
  declare function isSameDate(firstDate: Date, secondDate: Date): boolean;
22
22
 
23
- declare function omitProperties<T extends Record<string, unknown>, K extends keyof T>(object: T, keysToOmit: K | readonly K[]): Omit<T, K>;
23
+ declare function omitProperties<T extends Record<string, unknown> | Readonly<Record<string, unknown>>, K extends keyof T>(object: T, keysToOmit: K | readonly K[]): Omit<T, K>;
24
24
 
25
25
  declare function parseIntStrict(string: string, radix?: number): number;
26
26
 
package/dist/index.d.ts CHANGED
@@ -20,7 +20,7 @@ declare function isMonthlyMultiple(firstDate: Date, secondDate: Date): boolean;
20
20
 
21
21
  declare function isSameDate(firstDate: Date, secondDate: Date): boolean;
22
22
 
23
- declare function omitProperties<T extends Record<string, unknown>, K extends keyof T>(object: T, keysToOmit: K | readonly K[]): Omit<T, K>;
23
+ declare function omitProperties<T extends Record<string, unknown> | Readonly<Record<string, unknown>>, K extends keyof T>(object: T, keysToOmit: K | readonly K[]): Omit<T, K>;
24
24
 
25
25
  declare function parseIntStrict(string: string, radix?: number): number;
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/utility",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "Helpful utility functions",
5
5
  "license": "ISC",
6
6
  "author": "alextheman",