@rbxts/humanoid-stat-manager 1.0.19 → 1.0.21
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/index.d.ts +1 -1
- package/out/init.luau +7 -2
- package/package.json +1 -1
package/out/index.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export declare namespace HumanoidStatManager {
|
|
|
4
4
|
type Client = typeof ClientType;
|
|
5
5
|
type Server = typeof ServerType;
|
|
6
6
|
}
|
|
7
|
-
export declare const HumanoidStatManager: typeof
|
|
7
|
+
export declare const HumanoidStatManager: typeof import("./server") | typeof import("./client");
|
package/out/init.luau
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
|
+
local TS = _G[script]
|
|
2
3
|
local RunService = game:GetService("RunService")
|
|
3
4
|
-- 1. The Namespace Declaration (For Types)
|
|
4
5
|
-- 2. The Runtime Value (For Logic)
|
|
5
6
|
local implementation
|
|
6
7
|
if RunService:IsServer() then
|
|
7
|
-
implementation =
|
|
8
|
+
implementation = TS.Promise.new(function(resolve)
|
|
9
|
+
resolve(TS.import(script, script, "server"))
|
|
10
|
+
end):expect()
|
|
8
11
|
else
|
|
9
|
-
implementation =
|
|
12
|
+
implementation = TS.Promise.new(function(resolve)
|
|
13
|
+
resolve(TS.import(script, script, "client"))
|
|
14
|
+
end):expect()
|
|
10
15
|
end
|
|
11
16
|
-- 3. Export as the same name (Declaration Merging)
|
|
12
17
|
local HumanoidStatManager = implementation
|