@gi-tcg/gts-runtime 0.6.4 → 0.6.6

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.ts CHANGED
@@ -260,9 +260,9 @@ type SimpleViewModelAttribute<ValueT, Options extends SimpleViewModelOptions> =
260
260
  (value: ValueT): AttributeReturn.Done;
261
261
  } & (Options["recursive"] extends true ? IsSingleton<ExtractObject<ValueT>> extends true ? {
262
262
  (): AttributeReturn.With<SimpleViewModel<ExtractObject<ValueT>, Options>>;
263
- } : Options["booleanSwitch"] extends true ? [true] extends [ValueT] ? {
263
+ } : {} : Options["booleanSwitch"] extends true ? true extends ValueT ? {
264
264
  (): AttributeReturn.Done;
265
- } : {} : {} : {});
265
+ } : {} : {});
266
266
  interface SimpleViewModel<T, Options extends SimpleViewModelOptions = {}> extends IViewModel<T, { [K in keyof T]-?: SimpleViewModelAttribute<T[K], Options> & {
267
267
  uniqueKey(): K;
268
268
  required(): {} extends Pick<T, K> ? false : true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gi-tcg/gts-runtime",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/piovium/gts.git"
@@ -37,12 +37,12 @@ type SimpleViewModelAttribute<
37
37
  SimpleViewModel<ExtractObject<ValueT>, Options>
38
38
  >;
39
39
  }
40
- : Options["booleanSwitch"] extends true
41
- ? [true] extends [ValueT]
42
- ? { (): AttributeReturn.Done }
43
- : {}
40
+ : {}
41
+ : Options["booleanSwitch"] extends true
42
+ ? true extends ValueT
43
+ ? { (): AttributeReturn.Done }
44
44
  : {}
45
- : {});
45
+ : {});
46
46
 
47
47
  export interface SimpleViewModel<
48
48
  T,