@quenty/idleservice 13.23.0 → 13.23.1-canary.545.2374fb2.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,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
+ ## [13.23.1-canary.545.2374fb2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@13.23.0...@quenty/idleservice@13.23.1-canary.545.2374fb2.0) (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
  # [13.23.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@13.22.3...@quenty/idleservice@13.23.0) (2025-04-02)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/idleservice
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/idleservice",
3
- "version": "13.23.0",
3
+ "version": "13.23.1-canary.545.2374fb2.0",
4
4
  "description": "Helps track whether or not a player is idle and if so, then can show UI or other cute things.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -27,19 +27,19 @@
27
27
  "Quenty"
28
28
  ],
29
29
  "dependencies": {
30
- "@quenty/baseobject": "^10.8.0",
31
- "@quenty/humanoidtracker": "^13.17.0",
32
- "@quenty/loader": "^10.8.0",
33
- "@quenty/maid": "^3.4.0",
34
- "@quenty/ragdoll": "^15.23.0",
35
- "@quenty/rx": "^13.17.0",
36
- "@quenty/servicebag": "^11.11.1",
37
- "@quenty/statestack": "^14.18.0",
38
- "@quenty/valuebaseutils": "^13.17.0",
39
- "@quenty/valueobject": "^13.17.0"
30
+ "@quenty/baseobject": "10.8.1-canary.545.2374fb2.0",
31
+ "@quenty/humanoidtracker": "13.17.1-canary.545.2374fb2.0",
32
+ "@quenty/loader": "10.8.1-canary.545.2374fb2.0",
33
+ "@quenty/maid": "3.4.1-canary.545.2374fb2.0",
34
+ "@quenty/ragdoll": "15.23.1-canary.545.2374fb2.0",
35
+ "@quenty/rx": "13.17.1-canary.545.2374fb2.0",
36
+ "@quenty/servicebag": "11.11.2-canary.545.2374fb2.0",
37
+ "@quenty/statestack": "14.18.1-canary.545.2374fb2.0",
38
+ "@quenty/valuebaseutils": "13.17.1-canary.545.2374fb2.0",
39
+ "@quenty/valueobject": "13.17.1-canary.545.2374fb2.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "e8ea56930e65322fcffc05a1556d5df988068f0b"
44
+ "gitHead": "2374fb2b043cfbe0e9b507b3316eec46a4e353a0"
45
45
  }
@@ -15,6 +15,7 @@ local RagdollClient = require("RagdollClient")
15
15
  local Rx = require("Rx")
16
16
  local StateStack = require("StateStack")
17
17
  local ValueObject = require("ValueObject")
18
+ local _ServiceBag = require("ServiceBag")
18
19
 
19
20
  local IdleServiceClient = {}
20
21
  IdleServiceClient.ServiceName = "IdleServiceClient"
@@ -26,7 +27,7 @@ local MOVE_DISTANCE_REQUIRED = 2.5
26
27
  Initializes the idle service on the client. Should be done via [ServiceBag].
27
28
  @param serviceBag ServiceBag
28
29
  ]=]
29
- function IdleServiceClient:Init(serviceBag)
30
+ function IdleServiceClient:Init(serviceBag: _ServiceBag.ServiceBag)
30
31
  assert(not self._maid, "Already initialized")
31
32
 
32
33
  self._maid = Maid.new()
@@ -86,7 +87,7 @@ function IdleServiceClient:ObserveHumanoidMoveFromCurrentPosition(minimumTimeVis
86
87
  return Rx.of(true):Pipe({
87
88
  Rx.delay(minimumTimeVisible);
88
89
  Rx.flatMap(function()
89
- return self._lastPosition:Observe();
90
+ return self._lastPosition:Observe()
90
91
  end);
91
92
  Rx.where(function(value)
92
93
  return value ~= nil
@@ -107,7 +108,7 @@ end
107
108
  Returns whether the humanoid is idle.
108
109
  @return boolean
109
110
  ]=]
110
- function IdleServiceClient:IsHumanoidIdle()
111
+ function IdleServiceClient:IsHumanoidIdle(): boolean
111
112
  return self._humanoidIdle.Value
112
113
  end
113
114
 
@@ -115,7 +116,7 @@ end
115
116
  Returns whether the humanoid is idle.
116
117
  @return boolean
117
118
  ]=]
118
- function IdleServiceClient:IsMoving()
119
+ function IdleServiceClient:IsMoving(): boolean
119
120
  return not self._humanoidIdle.Value
120
121
  end
121
122
 
@@ -166,7 +167,7 @@ function IdleServiceClient:PushDisable()
166
167
  return self._disableStack:PushState(true)
167
168
  end
168
169
 
169
- function IdleServiceClient:_setEnabled(enabled)
170
+ function IdleServiceClient:_setEnabled(enabled: boolean)
170
171
  assert(type(enabled) == "boolean", "Bad enabled")
171
172
  self._enabled.Value = enabled
172
173
  end
@@ -4,10 +4,12 @@
4
4
 
5
5
  local require = require(script.Parent.loader).load(script)
6
6
 
7
+ local _ServiceBag = require("ServiceBag")
8
+
7
9
  local IdleService = {}
8
10
  IdleService.ServiceName = "IdleService"
9
11
 
10
- function IdleService:Init(serviceBag)
12
+ function IdleService:Init(serviceBag: _ServiceBag.ServiceBag)
11
13
  assert(not self._serviceBag, "Already initialized")
12
14
  self._serviceBag = assert(serviceBag, "No serviceBag")
13
15