@stryke/helpers 0.7.0 → 0.7.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.
@@ -11,8 +11,8 @@ type IsTuple<T extends readonly any[] | {
11
11
  never
12
12
  ] ? false : T extends readonly any[] ? number extends T["length"] ? false : true : false;
13
13
  type ValueOf<Instance> = IsValueOf<Instance, boolean> extends true ? boolean : IsValueOf<Instance, number> extends true ? number : IsValueOf<Instance, string> extends true ? string : Instance;
14
- type IsValueOf<Instance, O extends IValueOf<any>> = Instance extends O ? O extends IValueOf<infer Primitive> ? Instance extends Primitive ? false : true : false : false;
15
- interface IValueOf<T> {
14
+ type IsValueOf<Instance, O extends ValueOfInterface<any>> = Instance extends O ? O extends ValueOfInterface<infer Primitive> ? Instance extends Primitive ? false : true : false : false;
15
+ interface ValueOfInterface<T> {
16
16
  valueOf: () => T;
17
17
  }
18
18
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/helpers",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "description": "A package containing miscellaneous helper functions that are used across many different Storm Software projects.",
6
6
  "repository": {
@@ -441,5 +441,5 @@
441
441
  "main": "./dist/index.cjs",
442
442
  "module": "./dist/index.mjs",
443
443
  "types": "./dist/index.d.ts",
444
- "gitHead": "ea7a3a1d68d4a4361cc04d6f5bf6219a5bc4a2a2"
444
+ "gitHead": "366390ec25211fb6b36feed4bf0cffb7713253cb"
445
445
  }