@rbxts/humanoid-stat-manager 1.0.18 → 1.0.20

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