@rbxts/app-forge 0.6.0-alpha.87 → 0.6.0-alpha.88

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.
Files changed (2) hide show
  1. package/out/vide/types.d.ts +11 -21
  2. package/package.json +1 -1
@@ -56,35 +56,25 @@ declare namespace Types {
56
56
  }
57
57
 
58
58
  namespace Rules {
59
- type noParent = {
60
- parent: never;
61
- detach: never;
59
+ type WithParent<P> = {
60
+ parent: P;
61
+ detach?: boolean;
62
62
  };
63
63
 
64
- type ParentStatic =
65
- | {
66
- parent: string;
67
- detach?: boolean;
68
- }
69
- | noParent;
64
+ type WithoutParent = {
65
+ parent?: never;
66
+ detach?: never;
67
+ };
70
68
 
71
- type Static = {
72
- parent?: string;
69
+ export type Static = {
73
70
  exclusiveGroup?: string;
74
71
  index?: number;
75
- } & ParentStatic;
72
+ } & (WithParent<string> | WithoutParent);
76
73
 
77
- type ParentGeneric<N extends AppNames = AppNames> =
78
- | {
79
- parent: Exclude<AppNames, N>;
80
- detach?: boolean;
81
- }
82
- | noParent;
83
-
84
- type Generic<N extends AppNames = AppNames> = {
74
+ export type Generic<N extends AppNames = AppNames> = {
85
75
  exclusiveGroup?: GroupNames;
86
76
  index?: number;
87
- } & ParentGeneric<N>;
77
+ } & (WithParent<Exclude<AppNames, N>> | WithoutParent);
88
78
  }
89
79
  }
90
80
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.6.0-alpha.87",
3
+ "version": "0.6.0-alpha.88",
4
4
  "description": "An App Manager for Vide",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",