@quenty/playerbinder 14.36.1 → 14.37.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 +6 -0
- package/package.json +3 -3
- package/src/Server/PlayerBinder.lua +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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
|
+
# [14.37.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/playerbinder@14.36.1...@quenty/playerbinder@14.37.0) (2026-07-14)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **playerbinder:** convert package to --!strict ([c00dce7](https://github.com/Quenty/NevermoreEngine/commit/c00dce77720dfd0af4fc0c50ea619bf677ec79ae))
|
|
11
|
+
|
|
6
12
|
## [14.36.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/playerbinder@14.36.0...@quenty/playerbinder@14.36.1) (2026-05-30)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @quenty/playerbinder
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/playerbinder",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.37.0",
|
|
4
4
|
"description": "Binds the given class to each player in the game",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"Quenty"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@quenty/binder": "14.
|
|
31
|
+
"@quenty/binder": "14.37.0",
|
|
32
32
|
"@quenty/loader": "10.11.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "13f0162f4971a77378e55e9b7236aea94f0dd3a8"
|
|
38
38
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
--!
|
|
1
|
+
--!strict
|
|
2
2
|
--[=[
|
|
3
3
|
Binds the given class to each player in the game
|
|
4
4
|
@class PlayerBinder
|
|
@@ -14,6 +14,8 @@ local PlayerBinder = setmetatable({}, Binder)
|
|
|
14
14
|
PlayerBinder.ClassName = "PlayerBinder"
|
|
15
15
|
PlayerBinder.__index = PlayerBinder
|
|
16
16
|
|
|
17
|
+
export type PlayerBinder<T> = typeof(setmetatable({} :: {}, {} :: typeof({ __index = PlayerBinder }))) & Binder.Binder<T>
|
|
18
|
+
|
|
17
19
|
--[=[
|
|
18
20
|
Returns a new PlayerBinder
|
|
19
21
|
@param tag string
|
|
@@ -21,8 +23,8 @@ PlayerBinder.__index = PlayerBinder
|
|
|
21
23
|
@param ... any
|
|
22
24
|
@return PlayerBinder<T>
|
|
23
25
|
]=]
|
|
24
|
-
function PlayerBinder.new(tag, class
|
|
25
|
-
local self = setmetatable(Binder.new(tag, class, ...), PlayerBinder)
|
|
26
|
+
function PlayerBinder.new<T>(tag: string, class: Binder.BinderConstructor<T>, ...: any): PlayerBinder<T>
|
|
27
|
+
local self: PlayerBinder<T> = setmetatable(Binder.new(tag, class, ...) :: any, PlayerBinder)
|
|
26
28
|
|
|
27
29
|
return self
|
|
28
30
|
end
|
|
@@ -31,8 +33,8 @@ end
|
|
|
31
33
|
Starts the binder. See [Binder.Start].
|
|
32
34
|
Should be done via a [ServiceBag].
|
|
33
35
|
]=]
|
|
34
|
-
function PlayerBinder
|
|
35
|
-
local results = { getmetatable(PlayerBinder).Start(self) }
|
|
36
|
+
function PlayerBinder.Start<T>(self: PlayerBinder<T>): ...any
|
|
37
|
+
local results = { (getmetatable(PlayerBinder) :: any).Start(self) }
|
|
36
38
|
|
|
37
39
|
self._maid:GiveTask(Players.PlayerAdded:Connect(function(player)
|
|
38
40
|
self:Tag(player)
|