@indietabletop/appkit 5.0.0-1 → 5.0.0-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.
@@ -33,13 +33,17 @@ export function ref() {
33
33
  return object({ id: string() });
34
34
  }
35
35
 
36
+ export function weaponRef() {
37
+ return assign(ref(), object({ count: number() }));
38
+ }
39
+
36
40
  export function treatmentRef() {
37
41
  return assign(ref(), object({ locationId: string() }));
38
42
  }
39
43
 
40
44
  export function vehicleWeaponRef() {
41
45
  return assign(
42
- ref(),
46
+ weaponRef(),
43
47
  object({ placement: enums(["FIXED", "PINTLE_MOUNTED"]) }),
44
48
  );
45
49
  }
@@ -53,7 +57,7 @@ export function gitData() {
53
57
  id: string(),
54
58
  type: ref(),
55
59
  name: string(),
56
- weapons: array(ref()),
60
+ weapons: array(weaponRef()),
57
61
  gear: array(ref()),
58
62
  offenses: array(ref()),
59
63
  treatments: array(treatmentRef()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indietabletop/appkit",
3
- "version": "5.0.0-1",
3
+ "version": "5.0.0-2",
4
4
  "description": "A collection of modules used in apps built by Indie Tabletop Club",
5
5
  "private": false,
6
6
  "type": "module",