@rbxts/app-forge 0.6.0-alpha.25 → 0.6.0-alpha.27
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/out/vide/rules.luau +1 -26
- package/out/vide/types.d.ts +6 -2
- package/package.json +1 -1
package/out/vide/rules.luau
CHANGED
|
@@ -42,7 +42,7 @@ do
|
|
|
42
42
|
local value = if type(_source) == "function" then source() else source
|
|
43
43
|
local _result = rules
|
|
44
44
|
if _result ~= nil then
|
|
45
|
-
_result = _result.
|
|
45
|
+
_result = _result.group
|
|
46
46
|
end
|
|
47
47
|
if _result == "Core" then
|
|
48
48
|
return true
|
|
@@ -54,31 +54,6 @@ do
|
|
|
54
54
|
if not (n ~= "" and n) or n == name then
|
|
55
55
|
return nil
|
|
56
56
|
end
|
|
57
|
-
local _n = n
|
|
58
|
-
local otherApp = AppRegistry[_n]
|
|
59
|
-
local _result_1 = otherApp
|
|
60
|
-
if _result_1 ~= nil then
|
|
61
|
-
_result_1 = _result_1.rules
|
|
62
|
-
if _result_1 ~= nil then
|
|
63
|
-
_result_1 = _result_1.groups
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
local groups = if _result_1 ~= "" and _result_1 then asTable(otherApp.rules.groups) else {}
|
|
67
|
-
-- ▼ ReadonlyArray.find ▼
|
|
68
|
-
local _callback_1 = function(g)
|
|
69
|
-
return g == "Core"
|
|
70
|
-
end
|
|
71
|
-
local _result_2
|
|
72
|
-
for _i, _v in groups do
|
|
73
|
-
if _callback_1(_v, _i - 1, groups) == true then
|
|
74
|
-
_result_2 = _v
|
|
75
|
-
break
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
-- ▲ ReadonlyArray.find ▲
|
|
79
|
-
if _result_2 then
|
|
80
|
-
return nil
|
|
81
|
-
end
|
|
82
57
|
if self.appManager:getSource(n)() then
|
|
83
58
|
self.appManager:set(n, false)
|
|
84
59
|
end
|
package/out/vide/types.d.ts
CHANGED
|
@@ -37,7 +37,6 @@ declare namespace Types {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
namespace Rules {
|
|
40
|
-
type Groups = AppGroups[number] | "Core" | "Core"[] | AppGroups[number][];
|
|
41
40
|
type BlockedBy = AppNames[number] | AppNames[number][];
|
|
42
41
|
type Blocks = AppNames[number] | AppNames[number][];
|
|
43
42
|
type Exclusive = boolean;
|
|
@@ -46,9 +45,14 @@ declare namespace Types {
|
|
|
46
45
|
type All = {
|
|
47
46
|
blockedBy?: BlockedBy;
|
|
48
47
|
exclusive?: Exclusive;
|
|
49
|
-
groups?: Groups;
|
|
50
48
|
blocks?: Blocks;
|
|
51
49
|
layer?: Layer;
|
|
50
|
+
|
|
51
|
+
groups?: AppGroups[];
|
|
52
|
+
group?: AppGroups | "Core";
|
|
53
|
+
|
|
54
|
+
parent?: AppNames[number];
|
|
55
|
+
parents?: AppNames[number][];
|
|
52
56
|
};
|
|
53
57
|
}
|
|
54
58
|
}
|