@quenty/rodux-actions 9.9.1 → 9.9.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
+ ## [9.9.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rodux-actions@9.9.1...@quenty/rodux-actions@9.9.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
  ## [9.9.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rodux-actions@9.9.0...@quenty/rodux-actions@9.9.1) (2025-03-21)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/rodux-actions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/rodux-actions",
3
- "version": "9.9.1",
3
+ "version": "9.9.2",
4
4
  "description": "Action provider for rodux",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,12 +25,12 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/loader": "^10.8.0",
29
- "@quenty/table": "^3.7.1",
28
+ "@quenty/loader": "^10.8.1",
29
+ "@quenty/table": "^3.7.2",
30
30
  "@quentystudios/t": "^3.0.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "6b7c3e15e60cdb185986207b574e2b5591261e7a"
35
+ "gitHead": "78c3ac0ab08dd18085b6e6e6e4f745e76ed99f68"
36
36
  }
@@ -35,8 +35,8 @@ function RoduxActionFactory:__call(...)
35
35
  return self:Create(...)
36
36
  end
37
37
 
38
- function RoduxActionFactory:CreateDispatcher(dispatch)
39
- assert(type(dispatch) == "function", "Bad dispatch function")
38
+ function RoduxActionFactory:CreateDispatcher(dispatch: () -> ())
39
+ assert(type(dispatch) == "function", "Bad dispatch")
40
40
 
41
41
  return function(...)
42
42
  return dispatch(self:Create(...))
@@ -71,11 +71,11 @@ function RoduxActionFactory:Validate(action)
71
71
  return self._validator(action)
72
72
  end
73
73
 
74
- function RoduxActionFactory:Is(action)
74
+ function RoduxActionFactory:Is(action): boolean
75
75
  return action.type == self._actionName
76
76
  end
77
77
 
78
- function RoduxActionFactory:IsApplicable(action)
78
+ function RoduxActionFactory:IsApplicable(action): boolean
79
79
  if self:Is(action) then
80
80
  assert(self:Validate(action))
81
81
  return true
@@ -29,7 +29,7 @@ end
29
29
  function RoduxActions:CreateReducer(initialState, handlers)
30
30
  assert(type(handlers) == "table", "Bad handlers")
31
31
 
32
- for actionType, func in pairs(handlers) do
32
+ for actionType, func in handlers do
33
33
  assert(type(func) == "function", "Bad handler")
34
34
  if not self:Get(actionType) then
35
35
  error(string.format("[RoduxActions.CreateReducer] - %q type is not registered", tostring(actionType)), 2)
@@ -56,7 +56,7 @@ function RoduxActions:CreateReducer(initialState, handlers)
56
56
  end
57
57
 
58
58
  function RoduxActions:Validate(action)
59
- assert(type(action) == "table","Bad action")
59
+ assert(type(action) == "table", "Bad action")
60
60
  assert(type(action.type) == "string","Bad action")
61
61
 
62
62
  local actionFactory = self:Get(action.type)