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