@quenty/humanoidutils 2.2.1 → 2.2.2

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,17 @@
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
+ ## [2.2.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoidutils@2.2.1...@quenty/humanoidutils@2.2.2) (2025-04-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.2.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoidutils@2.2.0...@quenty/humanoidutils@2.2.1) (2025-03-21)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/humanoidutils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/humanoidutils",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "General humanoid utility code.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -27,5 +27,5 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "6b7c3e15e60cdb185986207b574e2b5591261e7a"
30
+ "gitHead": "78c3ac0ab08dd18085b6e6e6e4f745e76ed99f68"
31
31
  }
@@ -1,3 +1,4 @@
1
+ --!strict
1
2
  --[=[
2
3
  Utility methods to work with Roblox humanoids.
3
4
 
@@ -13,7 +14,7 @@ local HumanoidUtils = {}
13
14
  @return Humanoid?
14
15
  ]=]
15
16
  function HumanoidUtils.getHumanoid(descendant: Instance): Humanoid?
16
- local character = descendant
17
+ local character: Instance? = descendant
17
18
  while character do
18
19
  local humanoid = character:FindFirstChildOfClass("Humanoid")
19
20
  if humanoid then
@@ -32,14 +33,14 @@ end
32
33
  @param humanoid Humanoid
33
34
  ]=]
34
35
  function HumanoidUtils.forceUnseatHumanoid(humanoid: Humanoid)
35
- local seatPart = humanoid.SeatPart
36
+ local seatPart: (Seat | VehicleSeat)? = humanoid.SeatPart
36
37
  if seatPart ~= nil then
37
38
  local weld = seatPart:FindFirstChild("SeatWeld")
38
39
  if weld then
39
40
  weld:Destroy()
40
41
  end
41
42
 
42
- seatPart:Sit(nil)
43
+ (seatPart :: any):Sit(nil)
43
44
  end
44
45
 
45
46
  humanoid.Sit = false