@quenty/toolutils 1.3.0 → 1.3.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 +11 -0
- package/package.json +6 -6
- package/src/Shared/RxToolUtils.lua +6 -3
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
|
+
## [1.3.1-canary.545.2374fb2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/toolutils@1.3.0...@quenty/toolutils@1.3.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
|
# [1.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/toolutils@1.2.2...@quenty/toolutils@1.3.0) (2025-04-02)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/toolutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/toolutils",
|
|
3
|
-
"version": "1.3.0",
|
|
3
|
+
"version": "1.3.1-canary.545.2374fb2.0",
|
|
4
4
|
"description": "Utility methods for tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/brio": "
|
|
29
|
-
"@quenty/instanceutils": "
|
|
30
|
-
"@quenty/loader": "
|
|
31
|
-
"@quenty/rx": "
|
|
28
|
+
"@quenty/brio": "14.17.1-canary.545.2374fb2.0",
|
|
29
|
+
"@quenty/instanceutils": "13.17.1-canary.545.2374fb2.0",
|
|
30
|
+
"@quenty/loader": "10.8.1-canary.545.2374fb2.0",
|
|
31
|
+
"@quenty/rx": "13.17.1-canary.545.2374fb2.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "2374fb2b043cfbe0e9b507b3316eec46a4e353a0"
|
|
37
37
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
--!strict
|
|
1
2
|
--[=[
|
|
2
3
|
@class RxToolUtils
|
|
3
4
|
]=]
|
|
@@ -6,6 +7,8 @@ local require = require(script.Parent.loader).load(script)
|
|
|
6
7
|
|
|
7
8
|
local RxInstanceUtils = require("RxInstanceUtils")
|
|
8
9
|
local RxBrioUtils = require("RxBrioUtils")
|
|
10
|
+
local _Observable = require("Observable")
|
|
11
|
+
local _Brio = require("Brio")
|
|
9
12
|
|
|
10
13
|
local RxToolUtils = {}
|
|
11
14
|
|
|
@@ -15,7 +18,7 @@ local RxToolUtils = {}
|
|
|
15
18
|
@param tool Instance
|
|
16
19
|
@return Observable<Brio<Humanoid>>
|
|
17
20
|
]=]
|
|
18
|
-
function RxToolUtils.observeEquippedHumanoidBrio(tool)
|
|
21
|
+
function RxToolUtils.observeEquippedHumanoidBrio(tool: Tool): _Observable.Observable<_Brio.Brio<Humanoid>>
|
|
19
22
|
assert(typeof(tool) == "Instance", "Bad tool")
|
|
20
23
|
|
|
21
24
|
return RxInstanceUtils.observePropertyBrio(tool, "Parent", function(parent)
|
|
@@ -23,8 +26,8 @@ function RxToolUtils.observeEquippedHumanoidBrio(tool)
|
|
|
23
26
|
end):Pipe({
|
|
24
27
|
RxBrioUtils.switchMapBrio(function(parent)
|
|
25
28
|
return RxInstanceUtils.observeChildrenOfClassBrio(parent, "Humanoid")
|
|
26
|
-
end)
|
|
27
|
-
})
|
|
29
|
+
end) :: any,
|
|
30
|
+
}) :: any
|
|
28
31
|
end
|
|
29
32
|
|
|
30
33
|
return RxToolUtils
|