@quenty/contentproviderutils 12.17.0 → 12.17.1

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
+ ## [12.17.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/contentproviderutils@12.17.0...@quenty/contentproviderutils@12.17.1) (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
  # [12.17.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/contentproviderutils@12.16.2...@quenty/contentproviderutils@12.17.0) (2025-04-02)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/contentproviderutils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/contentproviderutils",
3
- "version": "12.17.0",
3
+ "version": "12.17.1",
4
4
  "description": "Utility functions to ensure that content is preloaded (wrapping calls in promises)",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -27,17 +27,17 @@
27
27
  "Quenty"
28
28
  ],
29
29
  "dependencies": {
30
- "@quenty/baseobject": "^10.8.0",
31
- "@quenty/instanceutils": "^13.17.0",
32
- "@quenty/loader": "^10.8.0",
33
- "@quenty/maid": "^3.4.0",
34
- "@quenty/promise": "^10.10.1",
35
- "@quenty/rx": "^13.17.0",
36
- "@quenty/signal": "^7.10.0",
37
- "@quenty/valueobject": "^13.17.0"
30
+ "@quenty/baseobject": "^10.8.1",
31
+ "@quenty/instanceutils": "^13.17.1",
32
+ "@quenty/loader": "^10.8.1",
33
+ "@quenty/maid": "^3.4.1",
34
+ "@quenty/promise": "^10.10.2",
35
+ "@quenty/rx": "^13.17.1",
36
+ "@quenty/signal": "^7.10.1",
37
+ "@quenty/valueobject": "^13.17.1"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "e8ea56930e65322fcffc05a1556d5df988068f0b"
42
+ "gitHead": "78c3ac0ab08dd18085b6e6e6e4f745e76ed99f68"
43
43
  }
@@ -20,7 +20,7 @@ local ContentProviderUtils = {}
20
20
  @param contentIdList { Instance | string }
21
21
  @return Promise
22
22
  ]=]
23
- function ContentProviderUtils.promisePreload(contentIdList)
23
+ function ContentProviderUtils.promisePreload(contentIdList: { Instance | string })
24
24
  assert(type(contentIdList) == "table", "Bad contentIdList")
25
25
 
26
26
  return Promise.spawn(function(resolve, reject)
@@ -32,7 +32,7 @@ function ContentProviderUtils.promisePreload(contentIdList)
32
32
  return reject(err)
33
33
  end
34
34
 
35
- resolve()
35
+ return resolve()
36
36
  end)
37
37
  end
38
38
 
@@ -30,23 +30,23 @@ function ImageLabelLoaded.new()
30
30
  return self
31
31
  end
32
32
 
33
- function ImageLabelLoaded:SetDefaultTimeout(defaultTimeout)
33
+ function ImageLabelLoaded:SetDefaultTimeout(defaultTimeout: number?)
34
34
  assert(type(defaultTimeout) == "number" or defaultTimeout == nil, "Bad defaultTimeout")
35
35
 
36
36
  self._defaultTimeout = defaultTimeout
37
37
  end
38
38
 
39
- function ImageLabelLoaded:IsLoaded()
39
+ function ImageLabelLoaded:IsLoaded(): boolean
40
40
  return self._isLoaded.Value
41
41
  end
42
42
 
43
- function ImageLabelLoaded:SetPreloadImage(preloadImage)
43
+ function ImageLabelLoaded:SetPreloadImage(preloadImage: boolean)
44
44
  assert(type(preloadImage) == "boolean", "Bad preloadImage")
45
45
 
46
46
  self._preloadImage.Value = preloadImage
47
47
  end
48
48
 
49
- function ImageLabelLoaded:PromiseLoaded(timeout)
49
+ function ImageLabelLoaded:PromiseLoaded(timeout: number?)
50
50
  assert(type(timeout) == "number" or timeout == nil, "Bad timeout")
51
51
 
52
52
  local originalTimeout = timeout
@@ -90,7 +90,7 @@ function ImageLabelLoaded:PromiseLoaded(timeout)
90
90
  return promise
91
91
  end
92
92
 
93
- function ImageLabelLoaded:SetImageLabel(imageLabel)
93
+ function ImageLabelLoaded:SetImageLabel(imageLabel: ImageLabel?)
94
94
  assert(typeof(imageLabel) == "Instance" and imageLabel:IsA("ImageLabel") or imageLabel == nil, "Bad imageLabel")
95
95
  if self._imageLabel == imageLabel then
96
96
  return