@quenty/humanoidspeed 12.49.1 → 12.50.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [12.50.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoidspeed@12.49.1...@quenty/humanoidspeed@12.50.0) (2026-07-14)
7
+
8
+ ### Features
9
+
10
+ - **humanoidspeed:** convert package to --!strict ([b37508d](https://github.com/Quenty/NevermoreEngine/commit/b37508dde19f2d8191e28a1e4d44bf09ffe63319))
11
+
6
12
  ## [12.49.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoidspeed@12.49.0...@quenty/humanoidspeed@12.49.1) (2026-05-30)
7
13
 
8
14
  **Note:** Version bump only for package @quenty/humanoidspeed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/humanoidspeed",
3
- "version": "12.49.1",
3
+ "version": "12.50.0",
4
4
  "description": "Handles humanoid speed in a centralized location",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -30,17 +30,17 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@quenty/baseobject": "10.13.0",
33
- "@quenty/binder": "14.36.1",
33
+ "@quenty/binder": "14.37.0",
34
34
  "@quenty/characterutils": "12.32.1",
35
35
  "@quenty/loader": "10.11.0",
36
- "@quenty/playerhumanoidbinder": "14.37.1",
36
+ "@quenty/playerhumanoidbinder": "14.38.0",
37
37
  "@quenty/promise": "10.18.1",
38
- "@quenty/rogue-humanoid": "10.49.1",
38
+ "@quenty/rogue-humanoid": "10.50.0",
39
39
  "@quenty/servicebag": "11.18.1",
40
40
  "@quenty/table": "3.9.2"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "598b2b62b36bdcbdbbd56f7db10c399831cc6eba"
45
+ "gitHead": "13f0162f4971a77378e55e9b7236aea94f0dd3a8"
46
46
  }
@@ -1,4 +1,4 @@
1
- --!nonstrict
1
+ --!strict
2
2
  --[=[
3
3
  Client version of the [HumanoidSpeed] class
4
4
 
@@ -16,8 +16,12 @@ local HumanoidSpeedClient = setmetatable({}, BaseObject)
16
16
  HumanoidSpeedClient.ClassName = "HumanoidSpeedClient"
17
17
  HumanoidSpeedClient.__index = HumanoidSpeedClient
18
18
 
19
- function HumanoidSpeedClient.new(humanoid: Humanoid)
20
- local self = setmetatable(BaseObject.new(humanoid), HumanoidSpeedClient)
19
+ export type HumanoidSpeedClient =
20
+ typeof(setmetatable({} :: {}, {} :: typeof({ __index = HumanoidSpeedClient })))
21
+ & BaseObject.BaseObject
22
+
23
+ function HumanoidSpeedClient.new(humanoid: Humanoid): HumanoidSpeedClient
24
+ local self: HumanoidSpeedClient = setmetatable(BaseObject.new(humanoid) :: any, HumanoidSpeedClient)
21
25
 
22
26
  return self
23
27
  end
@@ -26,8 +30,8 @@ end
26
30
  Gets the player for this humanoid
27
31
  @return Player?
28
32
  ]=]
29
- function HumanoidSpeedClient:GetPlayer(): Player?
30
- return CharacterUtils.getPlayerFromCharacter(self._obj)
33
+ function HumanoidSpeedClient.GetPlayer(self: HumanoidSpeedClient): Player?
34
+ return CharacterUtils.getPlayerFromCharacter(self._obj :: Instance)
31
35
  end
32
36
 
33
- return Binder.new("HumanoidSpeed", HumanoidSpeedClient)
37
+ return Binder.new("HumanoidSpeed", HumanoidSpeedClient :: any) :: Binder.Binder<HumanoidSpeedClient>
@@ -1,4 +1,4 @@
1
- --!nonstrict
1
+ --!strict
2
2
  --[=[
3
3
  Manages speed of a humanoid
4
4
 
@@ -46,7 +46,7 @@ end
46
46
  Sets the default speed for the humanoid
47
47
  @param defaultSpeed number
48
48
  ]=]
49
- function HumanoidSpeed:SetDefaultSpeed(defaultSpeed)
49
+ function HumanoidSpeed.SetDefaultSpeed(self: HumanoidSpeed, defaultSpeed: number): ()
50
50
  self._properties.WalkSpeed:SetBaseValue(defaultSpeed)
51
51
  end
52
52
 
@@ -55,7 +55,7 @@ end
55
55
  @param multiplier number
56
56
  @return function -- Cleanup function
57
57
  ]=]
58
- function HumanoidSpeed:ApplySpeedMultiplier(multiplier: number)
58
+ function HumanoidSpeed.ApplySpeedMultiplier(self: HumanoidSpeed, multiplier: number): Instance?
59
59
  assert(type(multiplier) == "number", "Bad multiplier")
60
60
  assert(multiplier >= 0, "Bad multiplier")
61
61
 
@@ -67,10 +67,10 @@ end
67
67
  @param amount number
68
68
  @return function -- Cleanup function
69
69
  ]=]
70
- function HumanoidSpeed:ApplySpeedAdditive(amount: number)
70
+ function HumanoidSpeed.ApplySpeedAdditive(self: HumanoidSpeed, amount: number): Instance?
71
71
  assert(type(amount) == "number", "Bad amount")
72
72
 
73
73
  return self._properties.WalkSpeed:CreateAdditive(amount)
74
74
  end
75
75
 
76
- return PlayerHumanoidBinder.new("HumanoidSpeed", HumanoidSpeed)
76
+ return PlayerHumanoidBinder.new("HumanoidSpeed", HumanoidSpeed :: any)