utilium 1.5.0 → 1.5.1

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/objects.d.ts CHANGED
@@ -41,11 +41,10 @@ export type JSONValue = JSONPrimitive | JSONObject | JSONValue[];
41
41
  /**
42
42
  * An object `T` with all of its functions bound to a `This` value
43
43
  */
44
- type Bound<T extends object, This = any> = T & {
44
+ export type Bound<T extends object, This = any> = T & {
45
45
  [k in keyof T]: T[k] extends (...args: any[]) => any ? (this: This, ...args: Parameters<T[k]>) => ReturnType<T[k]> : T[k];
46
46
  };
47
47
  /**
48
48
  * Binds a this value for all of the functions in an object (not recursive)
49
49
  */
50
50
  export declare function bindFunctions<T extends object, This = any>(fns: T, thisValue: This): Bound<T, This>;
51
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utilium",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Typescript utilities",
5
5
  "funding": {
6
6
  "type": "individual",
package/src/objects.ts CHANGED
@@ -122,7 +122,7 @@ export type JSONValue = JSONPrimitive | JSONObject | JSONValue[];
122
122
  /**
123
123
  * An object `T` with all of its functions bound to a `This` value
124
124
  */
125
- type Bound<T extends object, This = any> = T & {
125
+ export type Bound<T extends object, This = any> = T & {
126
126
  [k in keyof T]: T[k] extends (...args: any[]) => any
127
127
  ? (this: This, ...args: Parameters<T[k]>) => ReturnType<T[k]>
128
128
  : T[k];