@rbxts/humanoid-stat-manager 1.0.21 → 1.0.23

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 CHANGED
@@ -1,7 +1,6 @@
1
- import type { HumanoidStatManager as ClientType } from './client';
2
- import type { HumanoidStatManager as ServerType } from './server';
3
1
  export declare namespace HumanoidStatManager {
4
- type Client = typeof ClientType;
5
- type Server = typeof ServerType;
2
+ type ClientImpl = typeof import("./client")["HumanoidStatManager"];
3
+ type ServerImpl = typeof import("./server")["HumanoidStatManager"];
4
+ const Client: ClientImpl;
5
+ const Server: ServerImpl;
6
6
  }
7
- export declare const HumanoidStatManager: typeof import("./server") | typeof import("./client");
package/out/init.luau CHANGED
@@ -1,20 +1,21 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
+ -- import { HumanoidStatManager as HumanoidStatManagerClient } from './client';
4
+ -- import { HumanoidStatManager as HumanoidStatManagerServer } from './server';
3
5
  local RunService = game:GetService("RunService")
4
- -- 1. The Namespace Declaration (For Types)
5
- -- 2. The Runtime Value (For Logic)
6
- local implementation
7
- if RunService:IsServer() then
8
- implementation = TS.Promise.new(function(resolve)
9
- resolve(TS.import(script, script, "server"))
10
- end):expect()
11
- else
12
- implementation = TS.Promise.new(function(resolve)
6
+ local HumanoidStatManager = {}
7
+ do
8
+ local _container = HumanoidStatManager
9
+ -- Types (type-only, no runtime import):
10
+ local Client = if RunService:IsClient() then TS.Promise.new(function(resolve)
13
11
  resolve(TS.import(script, script, "client"))
14
- end):expect()
12
+ end):expect().HumanoidStatManager else nil
13
+ _container.Client = Client
14
+ local Server = if RunService:IsServer() then TS.Promise.new(function(resolve)
15
+ resolve(TS.import(script, script, "server"))
16
+ end):expect().HumanoidStatManager else nil
17
+ _container.Server = Server
15
18
  end
16
- -- 3. Export as the same name (Declaration Merging)
17
- local HumanoidStatManager = implementation
18
19
  return {
19
20
  HumanoidStatManager = HumanoidStatManager,
20
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/humanoid-stat-manager",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "",
5
5
  "main": "out/init.lua",
6
6
  "scripts": {