@quenty/generatewithmixin 11.11.1 → 11.12.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,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
+ # [11.12.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/generatewithmixin@11.11.1...@quenty/generatewithmixin@11.12.0) (2026-07-14)
7
+
8
+ ### Features
9
+
10
+ - **generatewithmixin:** convert package to --!strict ([c19e081](https://github.com/Quenty/NevermoreEngine/commit/c19e0812e24c719e433622aac883511d909cf1fb))
11
+
6
12
  ## [11.11.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/generatewithmixin@11.11.0...@quenty/generatewithmixin@11.11.1) (2026-05-30)
7
13
 
8
14
  **Note:** Version bump only for package @quenty/generatewithmixin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/generatewithmixin",
3
- "version": "11.11.1",
3
+ "version": "11.12.0",
4
4
  "description": "Simple mixin to generate code for a class",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -34,5 +34,5 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "598b2b62b36bdcbdbbd56f7db10c399831cc6eba"
37
+ "gitHead": "13f0162f4971a77378e55e9b7236aea94f0dd3a8"
38
38
  }
@@ -1,4 +1,4 @@
1
- --!nonstrict
1
+ --!strict
2
2
  --[=[
3
3
  Simple mixin to generate code for a class.
4
4
 
@@ -20,7 +20,7 @@ local GenerateWithMixin = {}
20
20
  @param class table
21
21
  @param staticResources table -- These resources are added to the class automatically
22
22
  ]=]
23
- function GenerateWithMixin:Add(class, staticResources)
23
+ function GenerateWithMixin:Add(class: { [string]: any }, staticResources: { string })
24
24
  assert(class, "Bad class")
25
25
  assert(staticResources, "Bad staticResources")
26
26
 
@@ -33,20 +33,20 @@ end
33
33
  @param class table -- Resources to add
34
34
  @param resources { string }
35
35
  ]=]
36
- function GenerateWithMixin._generateWith(class, resources)
36
+ function GenerateWithMixin._generateWith(class: { [string]: any }, resources: { string }): { [string]: any }
37
37
  assert(type(resources) == "table", "Bad resources")
38
38
 
39
39
  for _, resourceName in ipairs(resources) do
40
40
  local storeName = String.toPrivateCase(resourceName)
41
41
 
42
- class[string.format("With%s", resourceName)] = function(self, resource)
42
+ class[string.format("With%s", resourceName)] = function(self: any, resource: any): any
43
43
  self[storeName] = resource
44
44
  or error(string.format("Failed to set '%s', %s", resourceName, tostring(resource)))
45
45
  self[resourceName] = resource -- inject publically too, for now
46
46
  return self
47
47
  end
48
48
 
49
- class[string.format("Get%s", resourceName)] = function(self)
49
+ class[string.format("Get%s", resourceName)] = function(self: any): any
50
50
  return self[storeName]
51
51
  end
52
52
  end