@quenty/cooldown 11.20.0 → 11.20.1

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
+ ## [11.20.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/cooldown@11.20.0...@quenty/cooldown@11.20.1) (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
  # [11.20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/cooldown@11.19.2...@quenty/cooldown@11.20.0) (2025-04-02)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/cooldown
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/cooldown",
3
- "version": "11.20.0",
3
+ "version": "11.20.1",
4
4
  "description": "Generalized networked cooldown system for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,26 +25,26 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/attributeutils": "^14.17.0",
29
- "@quenty/baseobject": "^10.8.0",
30
- "@quenty/binder": "^14.19.0",
31
- "@quenty/ducktype": "^5.8.1",
32
- "@quenty/instanceutils": "^13.17.0",
33
- "@quenty/loader": "^10.8.0",
34
- "@quenty/maid": "^3.4.0",
35
- "@quenty/promise": "^10.10.1",
36
- "@quenty/propertyvalue": "^7.17.0",
37
- "@quenty/remoting": "^12.18.0",
38
- "@quenty/rx": "^13.17.0",
39
- "@quenty/rxbinderutils": "^14.19.0",
40
- "@quenty/servicebag": "^11.11.1",
41
- "@quenty/signal": "^7.10.0",
42
- "@quenty/table": "^3.7.1",
43
- "@quenty/timesyncservice": "^13.18.0",
44
- "@quenty/valueobject": "^13.17.0"
28
+ "@quenty/attributeutils": "^14.17.1",
29
+ "@quenty/baseobject": "^10.8.1",
30
+ "@quenty/binder": "^14.19.1",
31
+ "@quenty/ducktype": "^5.8.2",
32
+ "@quenty/instanceutils": "^13.17.1",
33
+ "@quenty/loader": "^10.8.1",
34
+ "@quenty/maid": "^3.4.1",
35
+ "@quenty/promise": "^10.10.2",
36
+ "@quenty/propertyvalue": "^7.17.1",
37
+ "@quenty/remoting": "^12.18.1",
38
+ "@quenty/rx": "^13.17.1",
39
+ "@quenty/rxbinderutils": "^14.19.1",
40
+ "@quenty/servicebag": "^11.11.2",
41
+ "@quenty/signal": "^7.10.1",
42
+ "@quenty/table": "^3.7.2",
43
+ "@quenty/timesyncservice": "^13.18.1",
44
+ "@quenty/valueobject": "^13.17.1"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "e8ea56930e65322fcffc05a1556d5df988068f0b"
49
+ "gitHead": "78c3ac0ab08dd18085b6e6e6e4f745e76ed99f68"
50
50
  }
@@ -6,8 +6,9 @@ local require = require(script.Parent.loader).load(script)
6
6
 
7
7
  local CooldownServiceClient = {}
8
8
  CooldownServiceClient.ServiceName = "CooldownServiceClient"
9
+ local _ServiceBag = require("ServiceBag")
9
10
 
10
- function CooldownServiceClient:Init(serviceBag)
11
+ function CooldownServiceClient:Init(serviceBag: _ServiceBag.ServiceBag)
11
12
  assert(not self._serviceBag, "Already initialized")
12
13
  self._serviceBag = assert(serviceBag, "No serviceBag")
13
14
 
@@ -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 CooldownService = {}
8
10
  CooldownService.ServiceName = "CooldownService"
9
11
 
10
- function CooldownService:Init(serviceBag)
12
+ function CooldownService:Init(serviceBag: _ServiceBag.ServiceBag)
11
13
  assert(not self._serviceBag, "Already initialized")
12
14
  self._serviceBag = assert(serviceBag, "No serviceBag")
13
15
 
@@ -35,11 +35,11 @@ function CooldownTrackerModel.new()
35
35
  return self
36
36
  end
37
37
 
38
- function CooldownTrackerModel.isCooldownTrackerModel(value)
38
+ function CooldownTrackerModel.isCooldownTrackerModel(value: any): boolean
39
39
  return DuckTypeUtils.isImplementation(CooldownTrackerModel, value)
40
40
  end
41
41
 
42
- function CooldownTrackerModel:IsCoolingDown()
42
+ function CooldownTrackerModel:IsCoolingDown(): boolean
43
43
  return self._currentCooldownModel.Value ~= nil
44
44
  end
45
45
 
@@ -65,7 +65,7 @@ function CooldownTracker:GetCooldownTrackerModel()
65
65
  return self._cooldownTrackModel
66
66
  end
67
67
 
68
- function CooldownTracker:IsCoolingDown()
68
+ function CooldownTracker:IsCoolingDown(): boolean
69
69
  return self._cooldownTrackModel:IsCoolingDown()
70
70
  end
71
71