@rbxts/humanoid-stat-manager 1.0.17 → 1.0.19

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 +1,7 @@
1
- export {};
1
+ import type { HumanoidStatManager as ClientType } from './client';
2
+ import type { HumanoidStatManager as ServerType } from './server';
3
+ export declare namespace HumanoidStatManager {
4
+ type Client = typeof ClientType;
5
+ type Server = typeof ServerType;
6
+ }
7
+ export declare const HumanoidStatManager: typeof ClientType | typeof ServerType;
package/out/init.luau CHANGED
@@ -1,2 +1,15 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
- return nil
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.Parent:WaitForChild("server"))
8
+ else
9
+ implementation = require(script.Parent:WaitForChild("client"))
10
+ end
11
+ -- 3. Export as the same name (Declaration Merging)
12
+ local HumanoidStatManager = implementation
13
+ return {
14
+ HumanoidStatManager = HumanoidStatManager,
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/humanoid-stat-manager",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "",
5
5
  "main": "out/init.lua",
6
6
  "scripts": {
@@ -12,7 +12,7 @@
12
12
  "author": "CriShoux",
13
13
  "license": "ISC",
14
14
  "type": "commonjs",
15
- "types": "out/types.d.ts",
15
+ "types": "out/index.d.ts",
16
16
  "files": [
17
17
  "out",
18
18
  "!**/*.tsbuildinfo"
package/out/types.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import './client'
2
- import './server'