@quenty/teleportserviceutils 9.17.3-canary.550.afa1b3b.0 → 9.17.4-canary.11a5dcf.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,7 +3,18 @@
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.17.3-canary.550.afa1b3b.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/teleportserviceutils@9.17.2...@quenty/teleportserviceutils@9.17.3-canary.550.afa1b3b.0) (2025-04-10)
6
+ ## [9.17.4-canary.11a5dcf.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/teleportserviceutils@9.17.3...@quenty/teleportserviceutils@9.17.4-canary.11a5dcf.0) (2025-05-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Additional type checking updates ([05ba29a](https://github.com/Quenty/NevermoreEngine/commit/05ba29a03efc9f3feed74b34f1d9dfb237496214))
12
+
13
+
14
+
15
+
16
+
17
+ ## [9.17.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/teleportserviceutils@9.17.2...@quenty/teleportserviceutils@9.17.3) (2025-04-10)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/teleportserviceutils
9
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/teleportserviceutils",
3
- "version": "9.17.3-canary.550.afa1b3b.0",
3
+ "version": "9.17.4-canary.11a5dcf.0",
4
4
  "description": "Utility functions for teleport srevice",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,12 +26,12 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/brio": "14.17.3-canary.550.afa1b3b.0",
30
- "@quenty/loader": "10.8.3-canary.550.afa1b3b.0",
31
- "@quenty/maid": "3.4.3-canary.550.afa1b3b.0",
32
- "@quenty/promise": "10.10.4-canary.550.afa1b3b.0",
33
- "@quenty/rx": "13.17.3-canary.550.afa1b3b.0",
34
- "@quenty/valueobject": "13.17.3-canary.550.afa1b3b.0"
29
+ "@quenty/brio": "14.17.4-canary.11a5dcf.0",
30
+ "@quenty/loader": "10.8.4-canary.11a5dcf.0",
31
+ "@quenty/maid": "3.4.4-canary.11a5dcf.0",
32
+ "@quenty/promise": "10.10.5-canary.11a5dcf.0",
33
+ "@quenty/rx": "13.17.4-canary.11a5dcf.0",
34
+ "@quenty/valueobject": "13.17.4-canary.11a5dcf.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@quenty/loader": "file:../loader"
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "afa1b3b99b862698c3ab46009497bd507150867c"
42
+ "gitHead": "11a5dcf7d4c7a0bfbf3337e97d30e8346ea09d3f"
43
43
  }
@@ -7,10 +7,10 @@
7
7
 
8
8
  local require = require(script.Parent.loader).load(script)
9
9
 
10
+ local Brio = require("Brio")
10
11
  local Maid = require("Maid")
11
12
  local Observable = require("Observable")
12
13
  local ValueObject = require("ValueObject")
13
- local Brio = require("Brio")
14
14
 
15
15
  local RxTeleportUtils = {}
16
16
 
@@ -1,3 +1,4 @@
1
+ --!strict
1
2
  --[=[
2
3
  @class TeleportServiceUtils
3
4
  ]=]
@@ -15,7 +16,7 @@ local TeleportServiceUtils = {}
15
16
  @param placeId number
16
17
  @return Promise<string> -- Code
17
18
  ]=]
18
- function TeleportServiceUtils.promiseReserveServer(placeId)
19
+ function TeleportServiceUtils.promiseReserveServer(placeId: number): Promise.Promise<string>
19
20
  assert(type(placeId) == "number", "Bad placeId")
20
21
 
21
22
  return Promise.spawn(function(resolve, reject)
@@ -38,10 +39,17 @@ end
38
39
  @param teleportOptions TeleportOptions
39
40
  @return Promise<string> -- Code
40
41
  ]=]
41
- function TeleportServiceUtils.promiseTeleport(placeId, players, teleportOptions)
42
+ function TeleportServiceUtils.promiseTeleport(
43
+ placeId: number,
44
+ players: { Player },
45
+ teleportOptions: TeleportOptions?
46
+ ): Promise.Promise<string>
42
47
  assert(type(placeId) == "number", "Bad placeId")
43
48
  assert(type(players) == "table", "Bad players")
44
- assert(typeof(teleportOptions) == "Instance" and teleportOptions:IsA("TeleportOptions") or teleportOptions == nil, "Bad options")
49
+ assert(
50
+ typeof(teleportOptions) == "Instance" and teleportOptions:IsA("TeleportOptions") or teleportOptions == nil,
51
+ "Bad options"
52
+ )
45
53
 
46
54
  return Promise.spawn(function(resolve, reject)
47
55
  local teleportAsyncResult
@@ -56,4 +64,4 @@ function TeleportServiceUtils.promiseTeleport(placeId, players, teleportOptions)
56
64
  end)
57
65
  end
58
66
 
59
- return TeleportServiceUtils
67
+ return TeleportServiceUtils