@quenty/coreguiutils 10.10.1 → 10.10.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
+ ## [10.10.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/coreguiutils@10.10.1...@quenty/coreguiutils@10.10.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
  ## [10.10.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/coreguiutils@10.10.0...@quenty/coreguiutils@10.10.1) (2025-03-21)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/coreguiutils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/coreguiutils",
3
- "version": "10.10.1",
3
+ "version": "10.10.2",
4
4
  "description": "Utility functions to work with the CoreGui",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,11 +25,11 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/loader": "^10.8.0",
29
- "@quenty/promise": "^10.10.1"
28
+ "@quenty/loader": "^10.8.1",
29
+ "@quenty/promise": "^10.10.2"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "6b7c3e15e60cdb185986207b574e2b5591261e7a"
34
+ "gitHead": "78c3ac0ab08dd18085b6e6e6e4f745e76ed99f68"
35
35
  }
@@ -1,3 +1,4 @@
1
+ --!strict
1
2
  --[=[
2
3
  Utility functions to work with the CoreGui
3
4
  @class CoreGuiUtils
@@ -20,31 +21,33 @@ local CoreGuiUtils = {}
20
21
  @param ... any -- parameters to set core with
21
22
  @return Promise<()>
22
23
  ]=]
23
- function CoreGuiUtils.promiseRetrySetCore(tries, initialWaitTime, ...)
24
+ function CoreGuiUtils.promiseRetrySetCore(tries: number, initialWaitTime: number, ...): Promise.Promise<()>
24
25
  assert(type(tries) == "number", "Bad tries")
25
26
  assert(type(initialWaitTime) == "number", "Bad initialWaitTime")
26
27
 
27
- local args = {...}
28
+ local args = { ... }
28
29
  local n = select("#", ...)
29
30
 
30
31
  return Promise.spawn(function(resolve, reject)
31
32
  local waitTime = initialWaitTime
32
33
 
33
34
  local ok, err
34
- for _=1, tries do
35
+ for _ = 1, tries do
35
36
  ok, err = CoreGuiUtils.tryToSetCore(unpack(args, 1, n))
36
37
  if ok then
37
38
  return resolve()
38
39
  else
39
40
  task.wait(waitTime)
40
41
  -- Exponential backoff
41
- waitTime = waitTime*2
42
+ waitTime = waitTime * 2
42
43
  end
43
44
  end
44
45
 
45
46
  if not ok then
46
47
  return reject(err)
47
48
  end
49
+
50
+ return
48
51
  end)
49
52
  end
50
53
 
@@ -55,7 +58,7 @@ end
55
58
  @return boolean -- false if failed
56
59
  @return string? -- error, if there was one
57
60
  ]=]
58
- function CoreGuiUtils.tryToSetCore(...)
61
+ function CoreGuiUtils.tryToSetCore(...): (boolean, string?)
59
62
  local args = {...}
60
63
  local n = select("#", ...)
61
64