@rbxts/humanoid-stat-manager 1.0.20 → 1.0.22

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